#26843: empty_label argument on ModelChoiceField is not tested
-------------------------------------+-------------------------------------
Reporter: smarlowucf | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Testing framework | Version: master
Severity: Normal | Keywords:
| ModelChoiceField,Tests,empty_label
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
The `empty_label` attribute on `ModelChoiceField` is not tested.
Possible cases:
{{{
# No empty label option
empty_label = None
# Changes empty label display value
empty_label = "Select One"
}}}
Additionally, if the field is required and initial is not None the value
is set to None.
[https://github.com/django/django/blob/master/django/forms/models.py#L1137]
--
Ticket URL: <https://code.djangoproject.com/ticket/26843>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/053.e1edee23af3210a505ebdbabb65ac597%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.