#35870: Allow customization of the blank option in select dropdowns
-------------------------------------+-------------------------------------
Reporter: Marijke Luttekes | Owner: Annabelle
| Wiegart
Type: Bug | Status: assigned
Component: Forms | Version: 5.0
Severity: Normal | Resolution:
Keywords: accessibility | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Annabelle Wiegart):
With Jacob's help, it was possible to make BLANK_CHOICE_LABEL a module-
level constant in the end (in django.db.models.fields). This constant is
looked up by db.models.utils.get_blank_choice_label(). A transitional
setting USE_BLANK_CHOICE_DASH allows reverting to the old label easily.
BLANK_CHOICE_LABEL is translatable. I added a translation test as well.
And the label can be overridden by an app's ready() method.
--
Ticket URL: <https://code.djangoproject.com/ticket/35870#comment:29>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019d3abd9b8c-f910b0ff-7615-4f50-bce9-f64bc3aaefd0-000000%40eu-central-1.amazonses.com.