Crash at BrowsableAPIRenderer.get_raw_data_form when a ListSerializer is used #8261
Unanswered
nstuardod
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
If I implement a Viewset using a ListSerializer (through a Serializer with
many=True
or using a explicit ListSerializer instance), and then implementingget_serializer()
the Browsable API crashes with the following trace:Since ListSerializers have no
fields
property I had to workaround this issue by wrapping my ListSerializer inside another serializer. After implementingcreate()
call the ListSerializercreate()
the ViewSet works without any issues.Are ListSerializers intended for use in ViewSets?
Beta Was this translation helpful? Give feedback.
All reactions