Skip to content

self.context is getting cleared in serializers.SerializerMethodField() #17

@sharrajesh

Description

@sharrajesh

First please accept my gratitude for this awesome util.

If I derive my serializer from this mixin and if my serializer have a field which is a serializer.SerializerMethodField.

In that method we have been using self.context['request']; which stays available if I donot derive my serializer from QueryFieldMixin by it disappears if I do.

Any guidance will be appreciated

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