mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
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 fad334e1a9.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
This commit is contained in:
@@ -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`).
|
||||
|
||||
Reference in New Issue
Block a user