From 5c71977daddb117d0417f3c1bf591f1afb2626b3 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Wed, 17 Jun 2026 14:50:09 -0400 Subject: [PATCH 1/4] Refs #34118 -- Removed further asgiref coroutine detection shims in tests. Follow-up to 4a52533329a03207c1c4592a13fbb12b9ec5ef9e. --- tests/deprecation/test_middleware_mixin.py | 3 ++- tests/view_tests/tests/test_debug.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/deprecation/test_middleware_mixin.py b/tests/deprecation/test_middleware_mixin.py index 7e86832e2b79..00bc0391edfb 100644 --- a/tests/deprecation/test_middleware_mixin.py +++ b/tests/deprecation/test_middleware_mixin.py @@ -1,6 +1,7 @@ import threading +from inspect import iscoroutinefunction -from asgiref.sync import async_to_sync, iscoroutinefunction +from asgiref.sync import async_to_sync from django.contrib.admindocs.middleware import XViewMiddleware from django.contrib.auth.middleware import ( diff --git a/tests/view_tests/tests/test_debug.py b/tests/view_tests/tests/test_debug.py index d8505860a3b2..229853b69019 100644 --- a/tests/view_tests/tests/test_debug.py +++ b/tests/view_tests/tests/test_debug.py @@ -5,11 +5,12 @@ import sys import tempfile import threading +from inspect import iscoroutinefunction from io import StringIO from pathlib import Path from unittest import mock, skipIf -from asgiref.sync import async_to_sync, iscoroutinefunction +from asgiref.sync import async_to_sync from django.core import mail from django.core.files.uploadedfile import SimpleUploadedFile From c37cc705e293f64431a982d29cfc3118c0e22f7c Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Wed, 17 Jun 2026 14:09:42 -0400 Subject: [PATCH 2/4] Refs #36905 -- Added missing deprecation note for safe parameter of JSONResponse. --- docs/internals/deprecation.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 4b586fef29cb..b40402b11708 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -15,6 +15,8 @@ about each item can often be found in the release notes of two versions prior. See the :ref:`Django 6.2 release notes ` for more details on these changes. +* The ``safe`` parameter of :class:`~django.http.JsonResponse` will be removed. + .. _deprecation-removed-in-7.0: 7.0 From e4527156866cb96edf881023b14cb7a6f25d7f51 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Wed, 17 Jun 2026 14:35:24 -0400 Subject: [PATCH 3/4] Refs #36593 -- Added missing deprecation note for select_related() with no arguments. --- docs/internals/deprecation.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index b40402b11708..85c6aa102524 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -120,6 +120,9 @@ details on these changes. ``django.core.signing.base64_hmac()`` will change from ``"sha1"`` to ``"sha256"``. +* Calling :meth:`.QuerySet.select_related` without arguments will raise + :exc:`TypeError`. + * :meth:`.QuerySet.select_related` will raise :exc:`TypeError` if passed ``True`` rather than :exc:`AttributeError`. From cf889381ffec9220ca9d7a8eccef0e06b903fa38 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Wed, 17 Jun 2026 14:38:10 -0400 Subject: [PATCH 4/4] Refs CVE-2026-6873 -- Moved deprecation note for SIGNED_COOKIE_LEGACY_SALT_FALLBACK. --- docs/internals/deprecation.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 85c6aa102524..4eda66e54426 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -38,9 +38,6 @@ details on these changes. * The ``URLIZE_ASSUME_HTTPS`` transitional setting will be removed. -* The ``SIGNED_COOKIE_LEGACY_SALT_FALLBACK`` transitional setting will be - removed. - * Using a percent sign in a column alias or annotation will raise ``ValueError``. @@ -81,6 +78,9 @@ details on these changes. * The ``USE_BLANK_CHOICE_DASH`` transitional setting will be removed. +* The ``SIGNED_COOKIE_LEGACY_SALT_FALLBACK`` transitional setting will be + removed. + * The ``Field.get_placeholder_sql`` shim over the deprecated ``get_placeholder`` method will be removed.