Support custom History Manager and QuerySet classes (gh-1280)
Renamed the (previously internal) admin template
simple_history/_object_history_list.html to
simple_history/object_history_list.html, and added the field
SimpleHistoryAdmin.object_history_list_template for overriding it (gh-1128)
Deprecated the undocumented template tag simple_history_admin_list.display_list();
it will be removed in version 3.8 (gh-1128)
Added SimpleHistoryAdmin.get_history_queryset() for overriding which QuerySet
is used to list the historical records (gh-1128)
Added SimpleHistoryAdmin.get_history_list_display() which returns
history_list_display by default, and made the latter into an actual field (gh-1128)
ModelDelta and ModelChange (in simple_history.models) are now immutable
dataclasses; their signatures remain unchanged (gh-1128)
ModelDelta's changes and changed_fields are now sorted alphabetically by
field name. Also, if ModelChange is for an M2M field, its old and new
lists are sorted by the related object. This should help prevent flaky tests. (gh-1128)
diff_against() has a new keyword argument, foreign_keys_are_objs;
see usage in the docs under "History Diffing" (gh-1128)
Added a "Changes" column to SimpleHistoryAdmin's object history table, listing
the changes between each historical record of the object; see the docs under
"Customizing the History Admin Templates" for overriding its template context (gh-1128)
Fixed the setting SIMPLE_HISTORY_ENABLED = False not preventing M2M historical
records from being created (gh-1328)
For history-tracked M2M fields, adding M2M objects (using add() or set())
used to cause a number of database queries that scaled linearly with the number of
objects; this has been fixed to now be a constant number of queries (gh-1333)
Commits
3854269 Bump coverage from 7.5.1 to 7.5.2 in /requirements (#1346)
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps django-simple-history from 3.5.0 to 3.6.0.
Release notes
Sourced from django-simple-history's releases.
Changelog
Sourced from django-simple-history's changelog.
Commits
3854269
Bump coverage from 7.5.1 to 7.5.2 in /requirements (#1346)aa2bb71
Prepare for release 3.6.0 (#1345)af81e4f
Bump tox from 4.11.3 to 4.15.0 in /requirements (#1342)be798aa
Bump tox-gh-actions from 3.1.3 to 3.2.0 in /requirements (#1343)7c6ee08
Bump coverage from 7.3.2 to 7.5.1 in /requirements (#1341)235f208
Bump mysqlclient from 2.2.0 to 2.2.4 in /requirements (#1340)b9d1e87
Bump sphinx from 7.2.6 to 7.3.7 in /requirements (#1337)e6fc7ae
Bump sphinx-rtd-theme from 1.3.0 to 2.0.0 in /requirements (#1338)4863536
Bump isort from 5.12.0 to 5.13.2 in /requirements (#1336)90dde0b
Bump flake8 from 6.1.0 to 7.0.0 in /requirements (#1335)You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show