summaryrefslogtreecommitdiff
path: root/tests/admin_views/test_related_object_lookups.py
diff options
context:
space:
mode:
authorAnnabelle Wiegart <annabelle.wiegart@proton.me>2026-01-18 20:03:28 +0100
committerJacob Walls <jacobtylerwalls@gmail.com>2026-04-22 17:06:29 -0400
commit63c56cda133a85a158502891c40465bc0331d3d9 (patch)
tree04380903d14307b71416b2e048ce4be8361cf0df /tests/admin_views/test_related_object_lookups.py
parentdc467fdc3b5744cec71fab876c23a14013e2510b (diff)
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 <mail@marijkeluttekes.dev>
Diffstat (limited to 'tests/admin_views/test_related_object_lookups.py')
-rw-r--r--tests/admin_views/test_related_object_lookups.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/admin_views/test_related_object_lookups.py b/tests/admin_views/test_related_object_lookups.py
index 2e6c0d07bd..eeba23f4f3 100644
--- a/tests/admin_views/test_related_object_lookups.py
+++ b/tests/admin_views/test_related_object_lookups.py
@@ -112,7 +112,7 @@ class SeleniumTests(AdminSeleniumTestCase):
self.assertHTMLEqual(
fk_dropdown.get_attribute("innerHTML"),
f"""
- <option value="" selected="">---------</option>
+ <option value="" selected="">- Select an option -</option>
<option value="{id_value}" selected>{interesting_name}</option>
""",
)
@@ -157,7 +157,7 @@ class SeleniumTests(AdminSeleniumTestCase):
self.assertHTMLEqual(
fk_dropdown.get_attribute("innerHTML"),
f"""
- <option value="" selected>---------</option>
+ <option value="" selected>- Select an option -</option>
<option value="{id_value}">{name}</option>
""",
)