Skip to content

Conversation

taobojlen
Copy link

[pre-commit.ci] pre-commit autoupdate

updates:

Fixed not resetting fields' unique attr

...in Django main (5.1 alpha).
This became an issue when
django/django@e65deb7
was added, as it changed unique from a property to a
cached_property.

[pre-commit.ci] pre-commit autoupdate (#1318)

updates:

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

Renamed admin's action_list to historical_records

This is a more accurate name for the contents of the queryset.

Also did a small cleanup of _object_history_list.html, incl. removing
the scope attribute of a <td> tag, as it's been deprecated for those
tags (see
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#scope).

Made object history list template overridable

Including renaming it to remove the _ prefix (indicating that it's
internal / not meant for usage by library users), and adding an
object_history_list_template field to the admin class.
This rename also changed the order of messages in the translation files.

Also deprecated the template tag simple_history_admin_list.display_list,
as it's now entirely unused within the project.

Made admin history queryset overridable

Added getter for admin's history_list_display

Added m2m_field_name util functions

These should help with often having to check which values are returned
by m2m_field_name() and m2m_reverse_field_name() - since they're
both undocumented.
Also, if Django changes the mentioned internal methods, it'll be easier
to only update these two functions instead of all the places they
are / will be used.

Refactored ModelDelta + ModelChange as dataclasses

This gives them useful methods like __eq__(), __repr__() and
__hash__() for free :)

Note that they have frozen=True (mainly to allow safe __hash__()
implementations), as I think the vast majority of users are in practice
treating these classes as read-only; modifying them serve no purpose
within this library, and should therefore be an incredibly niche use
case (except when comparing against expected mock objects while testing,
but then dataclasses.replace() can be used).

Refactored parts of diff_against()

  • Refactored building the change lists
    • Extracted the code for M2M fields and other fields into two helper
      methods
    • Derive changed_fields from changes
  • Refactored getting M2M fields to avoid querying the DB (1 or 2 times)
    for a reference_history_m2m_item

Added foreign_keys_are_objs arg to diff_against()

This makes it easier to get the related objects from the diff objects,
and facilitates prefetching the related objects when listing the diffs

  • which is needed for the upcoming changes to the admin history page
    adding a "Changes" column.

The returned ModelDelta fields are now alphabetically ordered, to
prevent flakiness of one of the added tests.

The old and new M2M lists of ModelChange are now also sorted,
which will prevent inconsistent ordering of the Place objects in
AdminSiteTest.test_history_list_contains_diff_changes_for_m2m_fields()
(will be added as part of the previously mentioned upcoming admin
history changes).

Lastly, cleaned up some utils imports in models.py.

diff_against() returns PK wrapper for deleted objs

...when called with foreign_keys_are_objs=True.
This special dataclass (DeletedObject) will signal to the user that
the related object was deleted, and provides useful info - i.e. the
object's PK and model - and a verbose __str__() implementation.
(An alternative solution of returning None for deleted objects, would
introduce ambiguity if the ForeignKey field is nullable.)

Added _select_related_history_tracked_objs()

...to HistoricalQuerySet.
This convenience method will make it easier to avoid database queries

  • e.g. when diffing and listing the results, which will be done as part
    of the upcoming changes to the admin history page adding a "Changes"
    column.

No documentation was added, after the following discussion:
django-commons/django-simple-history#1128 (comment)
Also prefixed the method with _, to mark it as not being part of the
public API.

Added obj diff code from unittest

...i.e. the code that's used to display the difference between the
actual and expected values for most of the assert[...] methods of
TestCase when the assertion fails.

This will be used to better display the diffs on the admin history page
in an upcoming commit - with some modifications.

The code was copied from
https://github.com/python/cpython/blob/v3.12.0/Lib/unittest/util.py#L8-L52,
with the following changes:

  • Placed the code inside a class, to group the functions and their
    "setting" variables from other code - which also lets them easily be
    overridden by users
  • Removed the _ prefix from the functions and variables
  • Added type hints
  • Formatted with Black

Lastly, the code was copied instead of simply imported from unittest,
because the functions are undocumented and underscore-prefixed, which
means that they're prone to being changed (drastically) or even removed,
and so I think maintaining it will be easier and more stable by
copy-pasting it - which additionally facilitates modification.

Added Changes column to admin history page

This lists the changes between each historical record of the object.

Effort has been made to make it easy for library users to override most
parts of this, and to let them customize only the details they want to
without having to copy or replace our implementation.
An overview of how to override it has been added to admin.rst.

Most of the code was added to template_utils.py, to avoid cluttering
SimpleHistoryAdmin.

Also updated the Norwegian Bokmål translations,
and updated all the docs screenshots, to make them have Django 5.0's UI
and to showcase the new column.

Co-authored-by: Gur Raunaq Singh [email protected]
Co-authored-by: Tim Schilling [email protected]

Made Bandit exclude test dirs

This removes the need for the nosec comments in files inside those
directories.

Also, the existing -x arg doesn't seem to work anymore, so this fixes
that.

Merge pull request #1128 from raunaq-sailo/feat/adding-history-diff

Add history diff column to admin change history table

[pre-commit.ci] pre-commit autoupdate (#1320)

updates:

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

Fix m2m saved when simple history disabled (#1329)

  • if statement to check settings

  • Updated changes

  • added reference to issue

  • added name as required

  • trigger test

  • Added test for #1329 and improved changelog


Co-authored-by: Anders [email protected]

[docs] Install project in yaml instead of reqs (#1332)

Context: bd26f19

This (refactor, technically) was motivated by fixing a Dependabot error
that prevented it from creating new dependency PRs.
Error message:

Dependabot couldn't fetch all your path-based dependencies
The affected dependencies were "-e ." at /requirements/docs.txt.

To use path-based dependencies with Dependabot the paths must be relative, resolve to a directory in this project's source code, and contain a valid Python project.

(From https://github.com/jazzband/django-simple-history/network/updates/827989501.)

Evidence that RTD still builds successfully:
https://readthedocs.org/projects/ddabble-django-simple-history/builds/24379182/

Fixed O(n) queries when adding M2M objects (#1333)

Bump black from 23.12.0 to 24.4.2 in /requirements (#1339)

Bumps black from 23.12.0 to 24.4.2.


updated-dependencies:

  • dependency-name: black
    dependency-type: direct:production
    update-type: version-update:semver-major
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump flake8 from 6.1.0 to 7.0.0 in /requirements (#1335)

Bumps flake8 from 6.1.0 to 7.0.0.


updated-dependencies:

  • dependency-name: flake8
    dependency-type: direct:production
    update-type: version-update:semver-major
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump isort from 5.12.0 to 5.13.2 in /requirements (#1336)

Bumps isort from 5.12.0 to 5.13.2.


updated-dependencies:

  • dependency-name: isort
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump sphinx-rtd-theme from 1.3.0 to 2.0.0 in /requirements (#1338)

Bumps sphinx-rtd-theme from 1.3.0 to 2.0.0.


updated-dependencies:

  • dependency-name: sphinx-rtd-theme
    dependency-type: direct:production
    update-type: version-update:semver-major
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump sphinx from 7.2.6 to 7.3.7 in /requirements (#1337)

Bumps sphinx from 7.2.6 to 7.3.7.


updated-dependencies:

  • dependency-name: sphinx
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump mysqlclient from 2.2.0 to 2.2.4 in /requirements (#1340)

Bumps mysqlclient from 2.2.0 to 2.2.4.


updated-dependencies:

  • dependency-name: mysqlclient
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump coverage from 7.3.2 to 7.5.1 in /requirements (#1341)

Bumps coverage from 7.3.2 to 7.5.1.


updated-dependencies:

  • dependency-name: coverage
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump tox-gh-actions from 3.1.3 to 3.2.0 in /requirements (#1343)

Bumps tox-gh-actions from 3.1.3 to 3.2.0.


updated-dependencies:

  • dependency-name: tox-gh-actions
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump tox from 4.11.3 to 4.15.0 in /requirements (#1342)

Bumps tox from 4.11.3 to 4.15.0.


updated-dependencies:

  • dependency-name: tox
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Prepare for release 3.6.0 (#1345)

Bump coverage from 7.5.1 to 7.5.2 in /requirements (#1346)

  • Bump coverage from 7.5.1 to 7.5.2 in /requirements

Bumps coverage from 7.5.1 to 7.5.2.


updated-dependencies:

  • dependency-name: coverage
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] [email protected]

  • Fixed too short version title underline in CHANGES

...causing the release build to fail; see
https://github.com/jazzband/django-simple-history/actions/runs/9244139646/job/25429085689


Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anders [email protected]

Update package metadata

Dropped support for Django 3.2 (#1344)

Its EOL was passed last month (April 1st); see
https://www.djangoproject.com/download/#supported-versions.

The changes in test_admin.py were made to slightly reduce the amount
of work required when dropping support for Django 4.2 in the future
(also the previous comments contained a typo, and should have said
"prior to Django 5.0" instead of "prior to Django 4.2").

Changed docs link to stable version

This can help avoid potential confusion, like what appears to have been
the cause of #1326.

Tweaked layout of README badges

They're now aligned left-to-right instead of above each other on GitHub.
(The rendered RST on PyPI and in the docs should be unaffected.)

Also changed their order.

Migrated setup.py -> pyproject.toml with Hatchling

Most of the changes to pyproject.toml were made by running
hatch new --init (see
https://hatch.pypa.io/latest/intro/#existing-project).
Most of the changes to the other files were based on the changes made in
django-commons/django-debug-toolbar#1690.

release.yml:

.pre-commit-config.yaml:

  • Added some pre-commit hooks for formatting and validating
    pyproject.toml

MANIFEST.in:

pyproject.toml:

Merge branch 'ddabble/update-package-metadata' into modernize-metadata

Conflicts:

.github/workflows/release.yml

CHANGES.rst

pyproject.toml

Changes in pyproject.toml:

Changes in tox.ini:

Merge pull request #1348 from ofek/modernize-metadata

Update package metadata

Added Django as installation dependency (#1349)

Our code requires a Django installation to run, so it would make sense
to add it as a dependency.

Prepare for release 3.7.0

Replaced PyPI comments in CHANGES.rst with a regex

This avoids having to move the comments in CHANGES.rst every time
we're preparing a new release.

Merge pull request #1350 from jazzband/release-3.7.0

Prepare for release 3.7.0

Make skip_history_when_saving work when creating a new object (#1262)

  • Made skip_history_when_saving work when creating

...a model object - not just when updating an object.

Also improved the docs on saving without creating historical records,
and fixed an unrelated PollWithManyToMany instance being used in the
assertions in the existing test for skip_history_when_saving.

  • Apply suggestions from code review

Co-authored-by: Tim Schilling [email protected]

  • More docs suggestions from code review

Co-authored-by: Tim Schilling [email protected]

Bump tox from 4.15.0 to 4.16.0 in /requirements

Bumps tox from 4.15.0 to 4.16.0.


updated-dependencies:

  • dependency-name: tox
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]

Bump psycopg[binary] from 3.1.19 to 3.2.1 in /requirements

Bumps psycopg[binary] from 3.1.19 to 3.2.1.


updated-dependencies:

  • dependency-name: psycopg[binary]
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]

Bump flake8 from 7.0.0 to 7.1.0 in /requirements

Bumps flake8 from 7.0.0 to 7.1.0.


updated-dependencies:

  • dependency-name: flake8
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]

Bump coverage from 7.5.2 to 7.5.4 in /requirements

Bumps coverage from 7.5.2 to 7.5.4.


updated-dependencies:

  • dependency-name: coverage
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] [email protected]

[pre-commit.ci] pre-commit autoupdate

updates:

Improve performance of the latest_of_each method of the manager (#1360)

  • Improve performance of the latest_of_each method of the manager

  • Polished docs and code

  • Improved as_of() test case

  • Moved assertRecordValues() to new HistoricalTestCase

This makes the method available for use in other test cases.

  • Added LatestOfEachTestCase

Co-authored-by: berke.agababaoglu [email protected]
Co-authored-by: Anders [email protected]

Bump coverage from 7.5.4 to 7.6.1 in /requirements (#1376)

Bumps coverage from 7.5.4 to 7.6.1.


updated-dependencies:

  • dependency-name: coverage
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump black from 24.4.2 to 24.8.0 in /requirements (#1377)

Bumps black from 24.4.2 to 24.8.0.


updated-dependencies:

  • dependency-name: black
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump tox from 4.16.0 to 4.18.1 in /requirements (#1386)

Bumps tox from 4.16.0 to 4.18.1.


updated-dependencies:

  • dependency-name: tox
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump flake8 from 7.1.0 to 7.1.1 in /requirements (#1378)

Bumps flake8 from 7.1.0 to 7.1.1.


updated-dependencies:

  • dependency-name: flake8
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

[pre-commit.ci] pre-commit autoupdate (#1374)

updates:

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

HistoricOneToOneField (#1394)

  • Implemented HistoricOneToOneField with unit tests

  • Updated AUTHORS.rst

  • Added HistoricOneToOneFiled to querying_history.rst

  • removed call to field cache

    • created HistoricDescriptorMixin to DRY out get_queryset method
  • Added suggested doc string to HistoricOneToOneField
  • Switch to lowest supported python version for pre-commit black

Co-authored-by: quadracik [email protected]
Co-authored-by: David Diamant [email protected]
Co-authored-by: Tim Schilling [email protected]

Deferred fields patch (#1393)

  • added patch and test

  • added myself to AUTHORS

  • adde my change to CHANGES.rst

  • fixed bug to connect to pre_delete instead of post_delete

  • implemented suggestion made by @jwaschkau in issue #1064

  • added .python-version to the .gitignore

    • added check to signal to see if instance is history enabled before loading its deferred fields
  • check that fields is "truthy" before calling refresh_from_db

  • added to test to ensure by-pass logic is covered

Bump psycopg[binary] from 3.2.1 to 3.2.3 in /requirements (#1398)

  • Bump psycopg[binary] from 3.2.1 to 3.2.3 in /requirements

Bumps psycopg[binary] from 3.2.1 to 3.2.3.


updated-dependencies:

  • dependency-name: psycopg[binary]
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] [email protected]

  • Test psycopg with Python 3.13

This was made possible with release 3.2.2 - see https://github.com/psycopg/psycopg/blob/3.2.3/docs/news.rst#psycopg-322


Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anders [email protected]

Bump black from 24.8.0 to 24.10.0 in /requirements (#1405)

Bumps black from 24.8.0 to 24.10.0.


updated-dependencies:

  • dependency-name: black
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump tox from 4.18.1 to 4.23.2 in /requirements (#1416)

Bumps tox from 4.18.1 to 4.23.2.


updated-dependencies:

  • dependency-name: tox
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump sphinx-rtd-theme from 2.0.0 to 3.0.2 in /requirements (#1418)

Bumps sphinx-rtd-theme from 2.0.0 to 3.0.2.


updated-dependencies:

  • dependency-name: sphinx-rtd-theme
    dependency-type: direct:production
    update-type: version-update:semver-major
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump sphinx from 7.3.7 to 8.1.3 in /requirements (#1409)

Bumps sphinx from 7.3.7 to 8.1.3.


updated-dependencies:

  • dependency-name: sphinx
    dependency-type: direct:production
    update-type: version-update:semver-major
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Updated all djangoproject.com links to reference the stable version (#1420)

  • Updated all djangoproject.com links to reference the stable version

  • Replaced a dev Django docs link with stable

Also added PR number to the changelog.


Co-authored-by: Anders [email protected]

Dropped support for Python 3.8

Its EOL was recently passed - see https://devguide.python.org/versions/#unsupported-versions

Made the new minimum Python version 3.9.


Co-authored-by: Anders [email protected]

Added support for Django 5.1

Also handled the deprecation of get_cache_name() - see https://docs.djangoproject.com/en/5.1/releases/5.1/#features-deprecated-in-5-1

Updated pre-commit versions and applied lint changes.

Merge pull request #1421 from tim-schilling/version-updates

Drop support for Python 3.8, added support for Django 5.1

History view pagination (#1277)

  • Implement history_view pagination

Borrowed from Django's object_history.html

  • Move pagination logic below the permission check

This avoids performing any database queries before we know that the user should be able to view data.

  • Reworded the docs around changing the page size

A developer is more likely to look for the term page size.


Bump mysqlclient from 2.2.4 to 2.2.6 in /requirements (#1423)

Bumps mysqlclient from 2.2.4 to 2.2.6.


updated-dependencies:

  • dependency-name: mysqlclient
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump coverage from 7.6.1 to 7.6.8 in /requirements (#1422)

Bumps coverage from 7.6.1 to 7.6.8.


updated-dependencies:

  • dependency-name: coverage
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

#527 Fixes issue where the history button doesn't work when viewing a historical entry

[pre-commit.ci] pre-commit autoupdate

updates:

Bump coverage from 7.6.8 to 7.6.9 in /requirements (#1427)

Bumps coverage from 7.6.8 to 7.6.9.


updated-dependencies:

  • dependency-name: coverage
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

[pre-commit.ci] pre-commit autoupdate

updates:

Bump coverage from 7.6.9 to 7.6.10 in /requirements (#1432)

Bumps coverage from 7.6.9 to 7.6.10.


updated-dependencies:

  • dependency-name: coverage
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump mysqlclient from 2.2.6 to 2.2.7 in /requirements (#1437)

Bumps mysqlclient from 2.2.6 to 2.2.7.


updated-dependencies:

  • dependency-name: mysqlclient
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump psycopg[binary] from 3.2.3 to 3.2.4 in /requirements (#1439)

Bumps psycopg[binary] from 3.2.3 to 3.2.4.


updated-dependencies:

  • dependency-name: psycopg[binary]
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump tox from 4.23.2 to 4.24.1 in /requirements (#1440)

Bumps tox from 4.23.2 to 4.24.1.


updated-dependencies:

  • dependency-name: tox
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Updated test matrix to test against Django 5.2 explicitly (#1441)

  • Updated test matrix to test against Django 5.2 explicitly

  • Apply suggestions from code review

Co-authored-by: Anders [email protected]

  • Some extra changes for supporting Django 5.2

Co-authored-by: Anders [email protected]

Prep for version 3.8 (#1442)

Added a 3.8 section to the changes documentation.

Remove the deprecated simple_history_admin_list.display_list() + Release 3.9.0 (#1444)

  • Removed the deprecated simple_history_admin_list

This was deprecated in 16b7de7.

  • Updated release notes for removing display_list()

Bump coverage from 7.6.10 to 7.6.12 in /requirements (#1454)

Bumps coverage from 7.6.10 to 7.6.12.


updated-dependencies:

  • dependency-name: coverage
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

[pre-commit.ci] pre-commit autoupdate (#1449)

updates:

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

Bump flake8 from 7.1.1 to 7.1.2 in /requirements (#1456)

Bumps flake8 from 7.1.1 to 7.1.2.


updated-dependencies:

  • dependency-name: flake8
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump tox-gh-actions from 3.2.0 to 3.3.0 in /requirements (#1459)

Bumps tox-gh-actions from 3.2.0 to 3.3.0.


updated-dependencies:

  • dependency-name: tox-gh-actions
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump sphinx from 8.1.3 to 8.2.3 in /requirements (#1462)

Bumps sphinx from 8.1.3 to 8.2.3.


updated-dependencies:

  • dependency-name: sphinx
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

[pre-commit.ci] pre-commit autoupdate (#1455)

updates:

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

Bump isort from 5.13.2 to 6.0.1 in /requirements (#1461)

Bumps isort from 5.13.2 to 6.0.1.


updated-dependencies:

  • dependency-name: isort
    dependency-type: direct:production
    update-type: version-update:semver-major
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump black from 24.10.0 to 25.1.0 in /requirements (#1447)

Bumps black from 24.10.0 to 25.1.0.


updated-dependencies:

  • dependency-name: black
    dependency-type: direct:production
    update-type: version-update:semver-major
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Exclude tests from wheels (#1478)

Closes #1477.

Updated changelog for #1478

Forgot to do it in that PR :)

Bump psycopg[binary] from 3.2.4 to 3.2.6 in /requirements (#1465)

Bumps psycopg[binary] from 3.2.4 to 3.2.6.


updated-dependencies:

  • dependency-name: psycopg[binary]
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] [email protected]

Bump tox from 4.24.1 to 4.25.0 in /requirements (#1472)

  • Bump tox from 4.24.1 to 4.25.0 in /requirements

Bumps tox from 4.24.1 to 4.25.0.


updated-dependencies:

  • dependency-name: tox
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]

  • Simplified tox envlist version ranges

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anders [email protected]

[pre-commit.ci] pre-commit autoupdate (#1468)

updates:

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

Bump coverage from 7.6.12 to 7.8.0 in /requirements (#1473)

Bumps coverage from 7.6.12 to 7.8.0.


updated-dependencies:

  • dependency-name: coverage
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump flake8 from 7.1.2 to 7.2.0 in /requirements (#1474)

Bumps flake8 from 7.1.2 to 7.2.0.


updated-dependencies:

  • dependency-name: flake8
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump psycopg[binary] from 3.2.6 to 3.2.9 in /requirements (#1484)

Bumps psycopg[binary] from 3.2.6 to 3.2.9.


updated-dependencies:

  • dependency-name: psycopg[binary]
    dependency-version: 3.2.9
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump tox from 4.25.0 to 4.26.0 in /requirements (#1485)

Bumps tox from 4.25.0 to 4.26.0.


updated-dependencies:

  • dependency-name: tox
    dependency-version: 4.26.0
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

[pre-commit.ci] pre-commit autoupdate (#1482)

updates:

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

Bump coverage from 7.8.0 to 7.9.0 in /requirements (#1495)

Bumps coverage from 7.8.0 to 7.9.0.


updated-dependencies:

  • dependency-name: coverage
    dependency-version: 7.9.0
    dependency-type: direct:production
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump codecov/codecov-action from 3 to 5 (#1425)

Bumps codecov/codecov-action from 3 to 5.


updated-dependencies:

  • dependency-name: codecov/codecov-action
    dependency-type: direct:production
    update-type: version-update:semver-major
    ...

Also added Codecov token, as token-less uploading is unsupported from v4

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anders [email protected]

Switch repo to Django Commons (#1429)

  • Switch to Django Common's code of conduct

  • Switch to Django Commons release workflow

This uses the PyPI GitHub trusted publisher integration.

  • Update references to Django Commons.

  • Update release process to latest version of Django Commons best practices.


Co-authored-by: Anders [email protected]

Prepare for release 3.10.0 (#1498)

Fixed changed log syntax to support PyPI packaging. (#1499)

  • Fixed changed log syntax to support PyPI packaging.

  • Added PR number to changelog entry


Co-authored-by: Anders [email protected]

Bump sigstore/gh-action-sigstore-python from 3.0.0 to 3.0.1 (#1500)

Bumps sigstore/gh-action-sigstore-python from 3.0.0 to 3.0.1.


updated-dependencies:

  • dependency-name: sigstore/gh-action-sigstore-python
    dependency-version: 3.0.1
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

fix(diff_against): support diffing against deleted records

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have run the pre-commit run command to format and lint.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have added my name and/or github handle to AUTHORS.rst
  • I have added my change to CHANGES.rst
  • All new and existing tests passed.

pre-commit-ci bot and others added 30 commits March 14, 2024 01:45
updates:
- [github.com/PyCQA/bandit: 1.7.7 → 1.7.8](PyCQA/bandit@1.7.7...1.7.8)
...in Django main (5.1 alpha).
This became an issue when
django/django@e65deb7
was added, as it changed `unique` from a property to a
`cached_property`.
updates:
- [github.com/psf/black-pre-commit-mirror: 24.2.0 → 24.3.0](psf/black-pre-commit-mirror@24.2.0...24.3.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This is a more accurate name for the contents of the queryset.

Also did a small cleanup of `_object_history_list.html`, incl. removing
the `scope` attribute of a `<td>` tag, as it's been deprecated for those
tags (see
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#scope).
Including renaming it to remove the `_` prefix (indicating that it's
internal / not meant for usage by library users), and adding an
`object_history_list_template` field to the admin class.
This rename also changed the order of messages in the translation files.

Also deprecated the template tag `simple_history_admin_list.display_list`,
as it's now entirely unused within the project.
These should help with often having to check which values are returned
by `m2m_field_name()` and `m2m_reverse_field_name()` - since they're
both undocumented.
Also, if Django changes the mentioned internal methods, it'll be easier
to only update these two functions instead of all the places they
are / will be used.
This gives them useful methods like `__eq__()`, `__repr__()` and
`__hash__()` for free :)

Note that they have `frozen=True` (mainly to allow safe `__hash__()`
implementations), as I think the vast majority of users are in practice
treating these classes as read-only; modifying them serve no purpose
within this library, and should therefore be an incredibly niche use
case (except when comparing against expected mock objects while testing,
but then `dataclasses.replace()` can be used).
* Refactored building the change lists
  * Extracted the code for M2M fields and other fields into two helper
    methods
  * Derive `changed_fields` from `changes`
* Refactored getting M2M fields to avoid querying the DB (1 or 2 times)
  for a `reference_history_m2m_item`
This makes it easier to get the related objects from the diff objects,
and facilitates prefetching the related objects when listing the diffs
- which is needed for the upcoming changes to the admin history page
adding a "Changes" column.

The returned `ModelDelta` fields are now alphabetically ordered, to
prevent flakiness of one of the added tests.

The `old` and `new` M2M lists of `ModelChange` are now also sorted,
which will prevent inconsistent ordering of the `Place` objects in
`AdminSiteTest.test_history_list_contains_diff_changes_for_m2m_fields()`
(will be added as part of the previously mentioned upcoming admin
history changes).

Lastly, cleaned up some `utils` imports in `models.py`.
...when called with `foreign_keys_are_objs=True`.
This special dataclass (`DeletedObject`) will signal to the user that
the related object was deleted, and provides useful info - i.e. the
object's PK and model - and a verbose `__str__()` implementation.
(An alternative solution of returning `None` for deleted objects, would
introduce ambiguity if the `ForeignKey` field is nullable.)
...to `HistoricalQuerySet`.
This convenience method will make it easier to avoid database queries
- e.g. when diffing and listing the results, which will be done as part
of the upcoming changes to the admin history page adding a "Changes"
column.

No documentation was added, after the following discussion:
django-commons/django-simple-history#1128 (comment)
Also prefixed the method with `_`, to mark it as not being part of the
public API.
...i.e. the code that's used to display the difference between the
actual and expected values for most of the `assert[...]` methods of
`TestCase` when the assertion fails.

This will be used to better display the diffs on the admin history page
in an upcoming commit - with some modifications.

The code was copied from
https://github.com/python/cpython/blob/v3.12.0/Lib/unittest/util.py#L8-L52,
with the following changes:
* Placed the code inside a class, to group the functions and their
  "setting" variables from other code - which also lets them easily be
  overridden by users
* Removed the `_` prefix from the functions and variables
* Added type hints
* Formatted with Black

Lastly, the code was copied instead of simply imported from `unittest`,
because the functions are undocumented and underscore-prefixed, which
means that they're prone to being changed (drastically) or even removed,
and so I think maintaining it will be easier and more stable by
copy-pasting it - which additionally facilitates modification.
This lists the changes between each historical record of the object.

Effort has been made to make it easy for library users to override most
parts of this, and to let them customize only the details they want to
without having to copy or replace our implementation.
An overview of how to override it has been added to `admin.rst`.

Most of the code was added to `template_utils.py`, to avoid cluttering
`SimpleHistoryAdmin`.

Also updated the Norwegian Bokmål translations,
and updated all the docs screenshots, to make them have Django 5.0's UI
and to showcase the new column.

Co-authored-by: Gur Raunaq Singh <[email protected]>
Co-authored-by: Tim Schilling <[email protected]>
This removes the need for the `nosec` comments in files inside those
directories.

Also, the existing `-x` arg doesn't seem to work anymore, so this fixes
that.
Add history diff column to admin change history table
updates:
- [github.com/psf/black-pre-commit-mirror: 24.3.0 → 24.4.2](psf/black-pre-commit-mirror@24.3.0...24.4.2)
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0)
- [github.com/asottile/pyupgrade: v3.15.1 → v3.15.2](asottile/pyupgrade@v3.15.1...v3.15.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* if statement to check settings

* Updated changes

* added reference to issue

* added name as required

* trigger test

* Added test for #1329 and improved changelog

---------

Co-authored-by: Anders <[email protected]>
Context: bd26f19

This (refactor, technically) was motivated by fixing a Dependabot error
that prevented it from creating new dependency PRs.
Error message:

> **Dependabot couldn't fetch all your path-based dependencies**
> The affected dependencies were `"-e ." at /requirements/docs.txt`.
>
> To use path-based dependencies with Dependabot the paths must be relative, resolve to a directory in this project's source code, and contain a valid Python project.

(From https://github.com/jazzband/django-simple-history/network/updates/827989501.)

Evidence that RTD still builds successfully:
https://readthedocs.org/projects/ddabble-django-simple-history/builds/24379182/
Bumps [black](https://github.com/psf/black) from 23.12.0 to 24.4.2.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@23.12.0...24.4.2)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [flake8](https://github.com/pycqa/flake8) from 6.1.0 to 7.0.0.
- [Commits](PyCQA/flake8@6.1.0...7.0.0)

---
updated-dependencies:
- dependency-name: flake8
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [isort](https://github.com/pycqa/isort) from 5.12.0 to 5.13.2.
- [Release notes](https://github.com/pycqa/isort/releases)
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md)
- [Commits](PyCQA/isort@5.12.0...5.13.2)

---
updated-dependencies:
- dependency-name: isort
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme) from 1.3.0 to 2.0.0.
- [Changelog](https://github.com/readthedocs/sphinx_rtd_theme/blob/master/docs/changelog.rst)
- [Commits](readthedocs/sphinx_rtd_theme@1.3.0...2.0.0)

---
updated-dependencies:
- dependency-name: sphinx-rtd-theme
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 7.2.6 to 7.3.7.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst)
- [Commits](sphinx-doc/sphinx@v7.2.6...v7.3.7)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [mysqlclient](https://github.com/PyMySQL/mysqlclient) from 2.2.0 to 2.2.4.
- [Release notes](https://github.com/PyMySQL/mysqlclient/releases)
- [Changelog](https://github.com/PyMySQL/mysqlclient/blob/main/HISTORY.rst)
- [Commits](PyMySQL/mysqlclient@v2.2.0...v2.2.4)

---
updated-dependencies:
- dependency-name: mysqlclient
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.3.2 to 7.5.1.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](nedbat/coveragepy@7.3.2...7.5.1)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [tox-gh-actions](https://github.com/ymyzk/tox-gh-actions) from 3.1.3 to 3.2.0.
- [Release notes](https://github.com/ymyzk/tox-gh-actions/releases)
- [Commits](ymyzk/tox-gh-actions@v3.1.3...v3.2.0)

---
updated-dependencies:
- dependency-name: tox-gh-actions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [tox](https://github.com/tox-dev/tox) from 4.11.3 to 4.15.0.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst)
- [Commits](tox-dev/tox@4.11.3...4.15.0)

---
updated-dependencies:
- dependency-name: tox
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
tim-schilling and others added 28 commits January 23, 2025 19:23
* Updated test matrix to test against Django 5.2 explicitly

* Apply suggestions from code review

Co-authored-by: Anders <[email protected]>

* Some extra changes for supporting Django 5.2

---------

Co-authored-by: Anders <[email protected]>
Added a 3.8 section to the changes documentation.
…Release 3.9.0** (#1444)

* Removed the deprecated simple_history_admin_list

This was deprecated in 16b7de7.

* Updated release notes for removing display_list()
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.6.10 to 7.6.12.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](nedbat/coveragepy@7.6.10...7.6.12)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
updates:
- [github.com/psf/black-pre-commit-mirror: 24.10.0 → 25.1.0](psf/black-pre-commit-mirror@24.10.0...25.1.0)
- [github.com/PyCQA/isort: 5.13.2 → 6.0.0](PyCQA/isort@5.13.2...6.0.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Bumps [flake8](https://github.com/pycqa/flake8) from 7.1.1 to 7.1.2.
- [Commits](PyCQA/flake8@7.1.1...7.1.2)

---
updated-dependencies:
- dependency-name: flake8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [tox-gh-actions](https://github.com/ymyzk/tox-gh-actions) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/ymyzk/tox-gh-actions/releases)
- [Commits](ymyzk/tox-gh-actions@v3.2.0...v3.3.0)

---
updated-dependencies:
- dependency-name: tox-gh-actions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 8.1.3 to 8.2.3.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst)
- [Commits](sphinx-doc/sphinx@v8.1.3...v8.2.3)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
updates:
- [github.com/PyCQA/bandit: 1.8.2 → 1.8.3](PyCQA/bandit@1.8.2...1.8.3)
- [github.com/pycqa/flake8: 7.1.1 → 7.1.2](PyCQA/flake8@7.1.1...7.1.2)
- [github.com/PyCQA/isort: 6.0.0 → 6.0.1](PyCQA/isort@6.0.0...6.0.1)
- [github.com/tox-dev/pyproject-fmt: v2.5.0 → v2.5.1](tox-dev/pyproject-fmt@v2.5.0...v2.5.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Bumps [isort](https://github.com/PyCQA/isort) from 5.13.2 to 6.0.1.
- [Release notes](https://github.com/PyCQA/isort/releases)
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md)
- [Commits](PyCQA/isort@5.13.2...6.0.1)

---
updated-dependencies:
- dependency-name: isort
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [black](https://github.com/psf/black) from 24.10.0 to 25.1.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@24.10.0...25.1.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Forgot to do it in that PR :)
Bumps [psycopg[binary]](https://github.com/psycopg/psycopg) from 3.2.4 to 3.2.6.
- [Changelog](https://github.com/psycopg/psycopg/blob/master/docs/news.rst)
- [Commits](psycopg/psycopg@3.2.4...3.2.6)

---
updated-dependencies:
- dependency-name: psycopg[binary]
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
* Bump tox from 4.24.1 to 4.25.0 in /requirements

Bumps [tox](https://github.com/tox-dev/tox) from 4.24.1 to 4.25.0.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst)
- [Commits](tox-dev/tox@4.24.1...4.25.0)

---
updated-dependencies:
- dependency-name: tox
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Simplified tox envlist version ranges

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anders <[email protected]>
updates:
- [github.com/pycqa/flake8: 7.1.2 → 7.2.0](PyCQA/flake8@7.1.2...7.2.0)
- [github.com/abravalheri/validate-pyproject: v0.23 → v0.24.1](abravalheri/validate-pyproject@v0.23...v0.24.1)
- [github.com/adrienverge/yamllint: v1.35.1 → v1.37.0](adrienverge/yamllint@v1.35.1...v1.37.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.6.12 to 7.8.0.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](nedbat/coveragepy@7.6.12...7.8.0)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [flake8](https://github.com/pycqa/flake8) from 7.1.2 to 7.2.0.
- [Commits](PyCQA/flake8@7.1.2...7.2.0)

---
updated-dependencies:
- dependency-name: flake8
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [psycopg[binary]](https://github.com/psycopg/psycopg) from 3.2.6 to 3.2.9.
- [Changelog](https://github.com/psycopg/psycopg/blob/3.2.9/docs/news.rst)
- [Commits](psycopg/psycopg@3.2.6...3.2.9)

---
updated-dependencies:
- dependency-name: psycopg[binary]
  dependency-version: 3.2.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [tox](https://github.com/tox-dev/tox) from 4.25.0 to 4.26.0.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst)
- [Commits](tox-dev/tox@4.25.0...4.26.0)

---
updated-dependencies:
- dependency-name: tox
  dependency-version: 4.26.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
updates:
- [github.com/adrienverge/yamllint: v1.37.0 → v1.37.1](adrienverge/yamllint@v1.37.0...v1.37.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.8.0 to 7.9.0.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](nedbat/coveragepy@7.8.0...7.9.0)

---
updated-dependencies:
- dependency-name: coverage
  dependency-version: 7.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v3...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...



Also added Codecov token, as token-less uploading is unsupported from v4
- see https://github.com/codecov/codecov-action/blob/v5/CHANGELOG.md#v400

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anders <[email protected]>
* Switch to Django Common's code of conduct

* Switch to Django Commons release workflow

This uses the PyPI GitHub trusted publisher integration.

* Update references to Django Commons.

* Update release process to latest version of Django Commons best practices.

---------

Co-authored-by: Anders <[email protected]>
* Fixed changed log syntax to support PyPI packaging.

* Added PR number to changelog entry

---------

Co-authored-by: Anders <[email protected]>
Bumps [sigstore/gh-action-sigstore-python](https://github.com/sigstore/gh-action-sigstore-python) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/sigstore/gh-action-sigstore-python/releases)
- [Changelog](https://github.com/sigstore/gh-action-sigstore-python/blob/main/CHANGELOG.md)
- [Commits](sigstore/gh-action-sigstore-python@v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: sigstore/gh-action-sigstore-python
  dependency-version: 3.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Copy link
Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@taobojlen taobojlen closed this Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.