From 63c56cda133a85a158502891c40465bc0331d3d9 Mon Sep 17 00:00:00 2001 From: Annabelle Wiegart Date: Sun, 18 Jan 2026 20:03:28 +0100 Subject: Fixed #35870 -- Made blank choice label in forms more accessible. Added new constant django.db.models.fields.BLANK_CHOICE_LABEL for an accessible and translatable blank choice label in forms. Deprecated django.db.models.fields.BLANK_CHOICE_DASH constant. Added the immediately deprecated transitional setting USE_BLANK_CHOICE_DASH. Co-Authored-By: Marijke Luttekes --- docs/internals/deprecation.txt | 4 ++++ docs/intro/_images/admin09.png | Bin 9249 -> 13503 bytes docs/ref/forms/fields.txt | 7 ++++++- docs/ref/models/fields.txt | 15 ++++++++++----- docs/ref/settings.txt | 14 ++++++++++++++ docs/releases/6.1.txt | 11 ++++++++++- 6 files changed, 44 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 799c355334..c8e467a0ee 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -64,6 +64,10 @@ details on these changes. :class:`~django.db.models.JSONNull` to query for a JSON ``null`` value instead. +* The ``django.db.models.fields.BLANK_CHOICE_DASH`` constant will be removed. + +* The ``USE_BLANK_CHOICE_DASH`` transitional setting will be removed. + * The ``Field.get_placeholder_sql`` shim over the deprecated ``get_placeholder`` method will be removed. diff --git a/docs/intro/_images/admin09.png b/docs/intro/_images/admin09.png index cf2e9a9e1c..5357bb99cf 100644 Binary files a/docs/intro/_images/admin09.png and b/docs/intro/_images/admin09.png differ diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index 73faa8cc18..085b36a0e5 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -1384,7 +1384,7 @@ generating choices. See :ref:`iterating-relationship-choices` for details. By default the ``