#31971: Would like a BooleanChoiceField in Forms
-------------------------------------+-------------------------------------
Reporter: Terence Collins | Owner: nobody
Type: New feature | Status: closed
Component: Forms | Version: 3.1
Severity: Normal | Resolution: wontfix
Keywords: boolean widget | Triage Stage:
radioselect radio BooleanField | Unreviewed
ChoiceField forms |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):
* status: new => closed
* resolution: => wontfix
Comment:
You should use a `BooleanField` with a different widget not a
`ChoiceField`, if you want to get data as booleans, e.g.
{{{
word_level_timing =
forms.BooleanField(widget=forms.RadioSelect(choices=TIMING_LEVEL_CHOICES))
}}}
I don't see a reason to add a new field to Django.
--
Ticket URL: <https://code.djangoproject.com/ticket/31971#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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/072.ee46ad8135f5db77e8f30c6c7dd1d336%40djangoproject.com.