- dropped support for python 3.8
- Chore: set default Python version to 3.11
- Fix: support custom parameters defined in urlconf (#30 by @gsfish)
- Displaying deprecation warning only when subclassing a deprecated class
-
BaseHistoryModelMixin
has been renamed toBaseHistoryMixin
and will be removed in the next version -
HistoryOnlyMixin
has been renamed toHistoryMixin
and will be removed in the next version -
DeletedOnlyMixin
has been renamed toDeletedMixin
and will be removed in the next version -
ReadOnlyHistoryModel
will be removed in the next version. Please useHistoryMixin
andDeletedMixin
for the same behaviour
-
dropped support for python < 3.8
-
mixins: returning the base
field_dict
in case of errors during serialization (#14)This happens when trying to serialize an history object with only a selected list of fields.
- now
field_dict
is serialized using the original serializer, check desired behavior when updating
- mixins: serializing
field_dict
field using the original serializer (#12 thanks to @gecBurton) - tests: test case for
deleted
pagination - tests: test case for serialization
- mixins: handling pagination in
deleted
action (#12)
- mixins: adding a
version
action for getting a specific version of the history (#10 thanks to @gecBurton) - tests: test case for
history
pagination
- mixins: handling pagination in
history
action (#10 thanks to @gecBurton) - mixins: sorting
history
by-revision__date_created
(#10 thanks to @gecBurton)
- mixins: splitting in coherent mixins and adding tests (#7)
- fix: url_path for revert action from
aaaa/<version_pk>
torevert/<version_pk>
(#4)
- viewsets: Update viewsets to use mixins (#3 thanks to @anudeepsamaiya)
- viewsets:
/deleted/
endpoint insideHistoryModelViewSet
- viewsets: allowing users to customize the
version_serializer
ofHistoryModelViewSet
- viewsets:
/<pk>/history/
endpoint insideHistoryModelViewSet