-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server error if update_lookup_field is missing from the provided data #34
Comments
@flc thank you for the report. DRF-bulk. 0.2.1 has the fix. please let me know if you will have any more issues |
thanks for the quick fix! |
@miki725 Can you help me understand the fix please? How is raising a validation error a fix for this issue? As a followup - can I do a bulk create or update using django-rest-framework-bulk? The code seems to suggest that they need to be done independently - only creates happen with the |
a 400 bad request would be much better.
I think it's because
id_field.get_value(data)
here https://github.com/miki725/django-rest-framework-bulk/blob/master/rest_framework_bulk/drf3/serializers.py#L26 returns anrest_framework.fields.empty
object.versions:
djangorestframework==3.1.1
djangorestframework-bulk==0.2
The text was updated successfully, but these errors were encountered: