Skip to content

Latest commit

 

History

History
124 lines (65 loc) · 2.39 KB

CHANGELOG.md

File metadata and controls

124 lines (65 loc) · 2.39 KB

CHANGELOG

[2.0.0]

Potentially BREAKING CHANGES

  • dropped support for python 3.8

[1.2.0]

Changed

  • Chore: set default Python version to 3.11

[1.1.2]

Changed

  • Fix: support custom parameters defined in urlconf (#30 by @gsfish)

[1.1.1]

Changed

  • Displaying deprecation warning only when subclassing a deprecated class

[1.1.0]

Changed

  • BaseHistoryModelMixin has been renamed to BaseHistoryMixin and will be removed in the next version

  • HistoryOnlyMixin has been renamed to HistoryMixin and will be removed in the next version

  • DeletedOnlyMixin has been renamed to DeletedMixin and will be removed in the next version

  • ReadOnlyHistoryModel will be removed in the next version. Please use HistoryMixin and DeletedMixin for the same behaviour

[1.0.1]

Changed

  • 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.

[1.0.0]

Potentially BREAKING CHANGES

  • now field_dict is serialized using the original serializer, check desired behavior when updating

Added

  • mixins: serializing field_dict field using the original serializer (#12 thanks to @gecBurton)
  • tests: test case for deleted pagination
  • tests: test case for serialization

Changed

  • mixins: handling pagination in deleted action (#12)

[0.5.0]

Added

  • mixins: adding a version action for getting a specific version of the history (#10 thanks to @gecBurton)
  • tests: test case for history pagination

Changed

  • mixins: handling pagination in history action (#10 thanks to @gecBurton)
  • mixins: sorting history by -revision__date_created (#10 thanks to @gecBurton)

[0.4.0]

Added

  • mixins: splitting in coherent mixins and adding tests (#7)

Changed

  • fix: url_path for revert action from aaaa/<version_pk> to revert/<version_pk> (#4)

[0.3.1]

Changed

  • viewsets: Update viewsets to use mixins (#3 thanks to @anudeepsamaiya)

[0.3.0]

Added

  • viewsets: /deleted/ endpoint inside HistoryModelViewSet

[0.2.0]

Added

  • viewsets: allowing users to customize the version_serializer of HistoryModelViewSet

[0.1.0]

Added

  • viewsets: /<pk>/history/ endpoint inside HistoryModelViewSet