diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2021-12-27 19:04:59 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-18 13:37:49 +0100 |
| commit | 9ac3ef59f9538cfb520e3607af743532434d1755 (patch) | |
| tree | 62aeb20ea258d03b49fab140b61a40d2634011ae /docs | |
| parent | 737542390af27616d93f86cd418e2d7f3e874b27 (diff) | |
Fixed #33379 -- Added minimum database version checks.
Thanks Tim Graham for the review.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/4.1.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt index 88d283ff65..936350979f 100644 --- a/docs/releases/4.1.txt +++ b/docs/releases/4.1.txt @@ -157,6 +157,18 @@ CSRF * ... +Database backends +~~~~~~~~~~~~~~~~~ + +* Third-party database backends can now specify the minimum required version of + the database using the ``DatabaseFeatures.minimum_database_version`` + attribute which is a tuple (e.g. ``(10, 0)`` means "10.0"). If a minimum + version is specified, backends must also implement + ``DatabaseWrapper.get_database_version()``, which returns a tuple of the + current database version. The backend's + ``DatabaseWrapper.init_connection_state()`` method must call ``super()`` in + order for the check to run. + Decorators ~~~~~~~~~~ |
