From 16107ab710dc23d5ea0aa17da6bf29fe89b61bb0 Mon Sep 17 00:00:00 2001 From: Sean Reed Date: Fri, 19 Dec 2025 22:09:25 +0100 Subject: [6.0.x] Refs #36810 -- Avoided infinite recursion in LazyNonce.__repr__(). Moved nonce generation in ``django.utils.csp.LazyNonce`` to a function to avoid infinite recursion in ``SimpleLazyObject.__repr__`` for unevaluated instances. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> Backport of 165c3599965e63f88649a46fcc2ff681c52f2f66 from main. --- docs/releases/6.0.1.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/6.0.1.txt b/docs/releases/6.0.1.txt index 790fa76e99..90158b6ff2 100644 --- a/docs/releases/6.0.1.txt +++ b/docs/releases/6.0.1.txt @@ -27,3 +27,7 @@ Bugfixes * Fixed a visual regression in Django 6.0 for admin form fields grouped under a ``
`` in Safari (:ticket:`36807`). + +* Fixed a crash in Django 6.0 caused by infinite recursion when calling + ``repr()`` on an unevaluated ``django.utils.csp.LazyNonce`` instance + (:ticket:`36810`). -- cgit v1.3