Releases: rehive/drf-rehive-extras
2.1.0
2.0.4
Bugs
- Fixed some minor issues with status evaluation on endpoints.
2.0.1
Enhancements
Minor improvements to the timestamp field.
- Updated the
TimestampField
to useIntegerField
as a base.
2.0.0
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:
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:
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:
response_status_codes = {"GET": status.HTTP_200_OK}
1.0.0
Merge pull request #3 from rehive/python_version_update Python version update
0.0.13
Enhancements
- Updated pagination handling
0.0.10
Bugs
- Fixed a bug in timestamp input where millisecond values are reset to 0 when inserted in the DB.
0.0.9
Fixed a bug in timestamp serialization.
0.0.8
Added new enum field for DRF serializers.
0.0.7
Adding allowed uppercase letters