You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Schema should be generated in a view that uses the CoreJSONRenderer.
Actual behavior
An AttributeError is thrown: '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:
Steps to reproduce
Create a
ModelViewSet
that usesget_serializer_class()
:Expected behavior
Schema should be generated in a view that uses the
CoreJSONRenderer
.Actual behavior
An
AttributeError
is thrown:'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: