Comments (4)
Workaround / solution is to copy BulkSerializerMixin into your app and replace this line:
id_value = id_field.get_value(data)
with this one:
id_value = id_field.to_internal_value(id_field.get_value(data))
from django-rest-framework-bulk.
Thank you, solved my problem!
from django-rest-framework-bulk.
Thank you, solved my problem!
from django-rest-framework-bulk.
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
for attr, value in validated_data.items():
AttributeError: 'NoneType' object has no attribute 'items'
[17/Mar/2021 22:17:04] "PUT /api/ruleset/ HTTP/1.1" 500 29444
from django-rest-framework-bulk.
Related Issues (20)
- POST on Browsable API fails because of get_initial
- Default allow_bulk_destroy implementation does the opposite of its documentation HOT 1
- README bug
- AttributeError: 'QuerySet' object has no attribute 'pk' when doing bulk update HOT 15
- how to validate the list when I create (怎么在创建的时候校验整个提交过来的list数据) HOT 2
- AttributeError: type object 'ContactsViewSet' has no attribute 'get_extra_actions' HOT 5
- Project status HOT 7
- permission_classes in ListBulkCreateUpdateAPIView HOT 1
- URL syntax for Bulk modifications HOT 1
- POST 400 (Bad Request) HOT 1
- is it possible to override put?
- Archive the project as it's dead HOT 4
- This contex generaly doesn't exist
- Field Unique fails when trying to bulk update
- if self.instance causes queryset to be evaluated
- Not displayed on the web page
- import BulkSerializerMixin err
- Adding BulkUpdateMixin will cause duplicate queries
- BulkListSerializer.update获取obj_id,当数据库中的类型为int时,会导致后续的get取不到obj_validated_data HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-rest-framework-bulk.