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 --- tests/admin_views/test_actions.py | 2 +- tests/admin_views/test_related_object_lookups.py | 4 +- tests/admin_views/tests.py | 15 ++++--- tests/admin_widgets/tests.py | 4 +- .../field_tests/test_typedchoicefield.py | 7 ++- tests/forms_tests/locale/de/LC_MESSAGES/django.mo | Bin 0 -> 322 bytes tests/forms_tests/locale/de/LC_MESSAGES/django.po | 14 ++++++ tests/forms_tests/locale/de/__init__.py | 0 tests/forms_tests/tests/test_forms.py | 37 +++++++++++++++- tests/forms_tests/tests/test_i18n.py | 38 +++++++++++++++++ tests/forms_tests/widget_tests/test_radioselect.py | 19 ++++++--- tests/model_fields/test_booleanfield.py | 5 ++- tests/model_fields/tests.py | 5 ++- tests/model_forms/test_modelchoicefield.py | 18 ++++---- tests/model_forms/tests.py | 47 ++++++++++++--------- tests/model_formsets/tests.py | 6 +-- tests/modeladmin/tests.py | 20 +++++---- 17 files changed, 178 insertions(+), 63 deletions(-) create mode 100644 tests/forms_tests/locale/de/LC_MESSAGES/django.mo create mode 100644 tests/forms_tests/locale/de/LC_MESSAGES/django.po create mode 100644 tests/forms_tests/locale/de/__init__.py (limited to 'tests') diff --git a/tests/admin_views/test_actions.py b/tests/admin_views/test_actions.py index 467fe046ef..c2c18e0b74 100644 --- a/tests/admin_views/test_actions.py +++ b/tests/admin_views/test_actions.py @@ -294,7 +294,7 @@ class AdminActionsTest(TestCase): self.assertContains( response, """