From 2de474dffca008038a7f9fe10289f390c5f4f15b Mon Sep 17 00:00:00 2001 From: sobolevn Date: Tue, 24 Feb 2026 11:15:17 +0300 Subject: [PATCH 1/2] Delete leaking loop iter vars in `smartif.py` While working on https://github.com/typeddjango/django-stubs/pull/3114/changes#diff-c408a224a641ee1ad26789d61b19c64c44667c1feb8fce0d58aea0338844ca66R276-R278 we have noticed that loop variables leak into the module namespace. It has two negative effects: 1. Users can access `smartif.op` and `smartif.key` public attrs, which is clearly not intenteded 2. We in `django-stubs` have to ignore these two objects from annotations Let's remove them :) --- django/template/smartif.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/template/smartif.py b/django/template/smartif.py index f6e8323bedcf..c0682f3b1e60 100644 --- a/django/template/smartif.py +++ b/django/template/smartif.py @@ -114,6 +114,7 @@ def eval(self, context): # Assign 'id' to each: for key, op in OPERATORS.items(): op.id = key +del key, op class Literal(TokenBase): From acd0bec51366e259b4c2b43e4c09755541cdf560 Mon Sep 17 00:00:00 2001 From: Natalia <124304+nessita@users.noreply.github.com> Date: Fri, 20 Feb 2026 14:49:16 -0300 Subject: [PATCH 2/2] Added stub release notes and release date for 6.0.3, 5.2.12, and 4.2.29. --- docs/releases/4.2.29.txt | 8 ++++++++ docs/releases/5.2.12.txt | 6 ++++-- docs/releases/6.0.3.txt | 5 +++-- docs/releases/index.txt | 1 + 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 docs/releases/4.2.29.txt diff --git a/docs/releases/4.2.29.txt b/docs/releases/4.2.29.txt new file mode 100644 index 000000000000..a3f3787cd6a7 --- /dev/null +++ b/docs/releases/4.2.29.txt @@ -0,0 +1,8 @@ +=========================== +Django 4.2.29 release notes +=========================== + +*March 3, 2026* + +Django 4.2.29 fixes a security issue with severity "moderate" and a security +issue with severity "low" in 4.2.28. diff --git a/docs/releases/5.2.12.txt b/docs/releases/5.2.12.txt index 1394308e56d7..9cbbf3836a78 100644 --- a/docs/releases/5.2.12.txt +++ b/docs/releases/5.2.12.txt @@ -2,9 +2,11 @@ Django 5.2.12 release notes =========================== -*Expected March 3, 2026* +*March 3, 2026* -Django 5.2.12 fixes one bug related to support for Python 3.14. +Django 5.2.12 fixes a security issue with severity "moderate" and a security +issue with severity "low" in 5.2.11. It also fixes one bug related to support +for Python 3.14. Bugfixes ======== diff --git a/docs/releases/6.0.3.txt b/docs/releases/6.0.3.txt index 3f4972529ee4..3f8c93e63d50 100644 --- a/docs/releases/6.0.3.txt +++ b/docs/releases/6.0.3.txt @@ -2,9 +2,10 @@ Django 6.0.3 release notes ========================== -*Expected March 3, 2026* +*March 3, 2026* -Django 6.0.3 fixes several bugs in 6.0.2. +Django 6.0.3 fixes a security issue with severity "moderate", a security issue +with severity "low", and several bugs in 6.0.2. Bugfixes ======== diff --git a/docs/releases/index.txt b/docs/releases/index.txt index 390876eadc69..eae6e49c83dc 100644 --- a/docs/releases/index.txt +++ b/docs/releases/index.txt @@ -105,6 +105,7 @@ versions of the documentation contain the release notes for any later releases. .. toctree:: :maxdepth: 1 + 4.2.29 4.2.28 4.2.27 4.2.26