Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sharrajesh opened this issue Jun 3, 2018 · 1 comment

Comments

@sharrajesh
Copy link

sharrajesh commented Jun 3, 2018

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

@wimglenn
Copy link
Owner

wimglenn commented Jun 3, 2018

Hi @sharrajesh , I saw your PR, but it's not clear to me what it's fixing. Could you please make a failing test case which reproduces the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants