Fixed #36616 -- Added DatabaseOperations.adapt_durationfield_value().
Some checks failed
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Has been cancelled
Linters / isort (push) Has been cancelled
Linters / black (push) Has been cancelled
Tests / Windows, SQLite, Python 3.13 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled

This commit is contained in:
Tim Graham 2025-09-23 12:36:49 -04:00 committed by GitHub
parent b67a36ec6f
commit 1acb00b26d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 22 additions and 7 deletions

View file

@ -243,7 +243,9 @@ Database backend API
This section describes changes that may be needed in third-party database
backends.
* ...
* The ``DatabaseOperations.adapt_durationfield_value()`` hook is added. If the
database has native support for ``DurationField``, override this method to
simply return the value.
Miscellaneous
-------------