Skip to content

This contex generaly doesn't exist #78

@kripnerl

Description

@kripnerl

This line in BulkSerializerMixin

request_method = getattr(getattr(self.context.get('view'), 'request'), 'method', '')

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions