From 7380ac57340653854bc2cfe0ed80298cdac6061d Mon Sep 17 00:00:00 2001 From: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> Date: Mon, 19 Aug 2024 16:51:31 +0200 Subject: 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> --- docs/releases/5.1.1.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') 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`). -- cgit v1.3