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
maerteijn
changed the title
We use serializer_class in the views for output but it should be used for input.
We use serializer_class in the API views for output but it should be used for input.
Aug 20, 2018
maerteijn
changed the title
We use serializer_class in the API views for output but it should be used for input.
Implement get_serializer_class for read and write serializers
Jan 15, 2019
I'm working on it. I've started with the basket views. Can i also change some APIView with a generic view?
I'll create a pull request with the work in progress.
No you can not change APIView to a generic view because that would disable all the permissions and also the response format stuff. It would be really difficult to recreate all that.
That's why all the HTML forms in the Browsable API are all not working. We should fix this according to https://www.django-rest-framework.org/api-guide/generic-views/#get_serializer_classself
Would also be needed for generating a correct OpenAPI specification for it.
The text was updated successfully, but these errors were encountered: