django-rest-framework-bulk icon indicating copy to clipboard operation
django-rest-framework-bulk copied to clipboard

This contex generaly doesn't exist

Open kripnerl opened this issue 5 years ago • 0 comments

This line in BulkSerializerMixin

https://github.com/miki725/django-rest-framework-bulk/blob/2a59d14e7036660f00996b013ab913678b5974c4/rest_framework_bulk/drf3/serializers.py#L19

can raise AttributeError: 'NoneType' object has no attribute 'request' if the is_valid() method is run without the client. For example during tests when I wanted to utilize the Serializer with BulkSerializerMixin.

kripnerl avatar Mar 10 '20 21:03 kripnerl