Enhancements
Major changes to how view response serialization and status codes are retrieved.
Response serialization
Instead of specifying a `return_serializer` within the create/update methods on the view, the response serializer can be specified using a new format in the `serializer_classes` attribute on views. The new format allows a separate request and response to be defined:
python
serializer_classes = {"GET": (RequestObjectSerializer, ResponseObjectSerializer,)}
The old format where it defaults to to the same serializer for both request and response serialization is still supported:
python
serializer_classes = {"GET": RequestAndResponseObjectSerializer}
Response status codes
Response status codes can now be modified via the `response_status_codes` attribute on views instead of the old `return_status_code`. Status codes can be specified for each HTTP method:
python
response_status_codes = {"GET": status.HTTP_200_OK}