-
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
UUIDs are not handled #66
Comments
Workaround / solution is to copy BulkSerializerMixin into your app and replace this line:
with this one:
|
Thank you, solved my problem! |
1 similar comment
Thank you, solved my problem! |
This also solved my problem bulk_update & bulk_partial_update fail, but others work fine: python3.8/site-packages/rest_framework/serializers.py", line 986, in update |
BulkSerializerMixin uses
get_value()
to get the id of an object, but doesn't useto_internal_value()
to convert the id to the proper internal value. This works fine for integer ids, but it breaks for UUIDs because theall_validated_data_by_id
inBulkListSerializer.update
constructs a dict by string id and then tries to get values for instance ids (which are UUIDs and thus not in the dictionary.)The text was updated successfully, but these errors were encountered: