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?
to your account
Create a ModelViewSet that uses get_serializer_class():
queryset = Person.objects.all()
if self.action == 'list':
Schema should be generated in a view that uses the CoreJSONRenderer.
An AttributeError is thrown: 'MyViewSet' object has no attribute 'action'.
'MyViewSet' object has no attribute 'action'
This is related to #4373 and #4278. If this isn't a bug, I may be missing something...the docs do have this method as the suggested way to dynamically change serializers.
Using djangorestframework==3.4.4 and python2.7.
The text was updated successfully, but these errors were encountered:
Yup, makes sense. Thanks for raising this.
Sorry, something went wrong.
No branches or pull requests