You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background
I needed to write my own view, using the provided bulk mixins.
Problem
I first tried importing using from rest_framework_bulk import mixins as bulk_mixins. Then, got the following error AttributeError: 'module' object has no attribute 'BulkCreateModelMixin' when trying to use bulk_mixins.BulkCreateModelMixin.
The failing import is very strange. Will try to replicate the issue. As for the other issue, will look over it sometime this week. Thank you for reporting.
Background
I needed to write my own view, using the provided bulk mixins.
Problem
I first tried importing using
from rest_framework_bulk import mixins as bulk_mixins
. Then, got the following errorAttributeError: 'module' object has no attribute 'BulkCreateModelMixin'
when trying to usebulk_mixins.BulkCreateModelMixin
.In the Django shell:
Whereas:
Solution
Having fixed the above problem, I stumped with the following:
'RelationsList' object has no attribute 'priority'
.When a non-bulk POST request (with just one object, not a list of objects) is made, it saves successfully and the response throws no error.
In my view I have:
My serializer classes are:
Traceback
The text was updated successfully, but these errors were encountered: