Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions docs/internals/deprecation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 <deprecated-features-6.2>` for more
details on these changes.

* The ``safe`` parameter of :class:`~django.http.JsonResponse` will be removed.

.. _deprecation-removed-in-7.0:

7.0
Expand All @@ -36,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``.

Expand Down Expand Up @@ -79,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.

Expand Down Expand Up @@ -118,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`.

Expand Down
3 changes: 2 additions & 1 deletion tests/deprecation/test_middleware_mixin.py
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
3 changes: 2 additions & 1 deletion tests/view_tests/tests/test_debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading