#23681: NullBooleanSelect should have choices kwarg
-----------------------------+--------------------------------------
Reporter: benjaoming | Owner: benjaoming
Type: New feature | Status: assigned
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-----------------------------+--------------------------------------
Comment (by timgraham):
As far as I can tell, you can use the `Select` widget instead of
`NullBooleanSelect` to achieve this (with `NullBooleanField` form field).
`widget=forms.Select(choices=[(None, "..."), (True, "..."), (False,
"...")])`. Assuming that works for you, we can document this tip. Would
you like to submit a patch?
--
Ticket URL: <https://code.djangoproject.com/ticket/23681#comment:2>
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/068.f7554b17e0b65c24ebd70d8b0e4d15b9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.