diff options
| author | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-08-19 16:51:31 +0200 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2024-08-28 19:25:55 -0300 |
| commit | 26c06671d9f9ff679be5e290b0752a45e582ce0c (patch) | |
| tree | 4f2da01a004e3d107a1f99f10c0909cc6310335d /docs | |
| parent | fcb71a76cc1f599f7abbce33e52d4e609d936b40 (diff) | |
[5.1.x] Fixed #35688 -- Restored timezone and role setters to be PostgreSQL DatabaseWrapper methods.
Following the addition of PostgreSQL connection pool support in
Refs #33497, the methods for configuring the database role and timezone
were moved to module-level functions. This change prevented subclasses
of DatabaseWrapper from overriding these methods as needed, for example,
when creating wrappers for other PostgreSQL-based backends.
Thank you Christian Hardenberg for the report and to
Florian Apolloner and Natalia Bidart for the review.
Regression in fad334e1a9b54ea1acb8cce02a25934c5acfe99f.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Backport of 7380ac57340653854bc2cfe0ed80298cdac6061d from main.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/5.1.1.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/5.1.1.txt b/docs/releases/5.1.1.txt index b6f9d23c35..b1c9ec4176 100644 --- a/docs/releases/5.1.1.txt +++ b/docs/releases/5.1.1.txt @@ -31,3 +31,7 @@ Bugfixes * Adjusted the deprecation warning ``stacklevel`` in ``FieldCacheMixin.get_cache_name()`` to correctly point to the offending call site (:ticket:`35405`). + +* Restored, following a regression in Django 5.1, the ability to override the + timezone and role setting behavior used within the ``init_connection_state`` + method of the PostgreSQL backend (:ticket:`35688`). |
