#27445: RadioSelect widget does not work for NullBooleanField
-------------------------------------+-------------------------------------
     Reporter:  Anne Fleischer       |                    Owner:  Jacob
                                     |  Rief
         Type:  New feature          |                   Status:  assigned
    Component:  Forms                |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  NullBooleanField,    |             Triage Stage:  Accepted
  RadioSelect                        |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Takis Issaris):

 After looking at the empty_value in the forms.widgets.RadioSelect, I tried
 using the following for choices:
 {{{
         choices = (('', 'Unknown'), (True, 'Yes'), (False, 'No'))
 }}}
 With this the issue of the HTML rendering not selecting the saved value is
 gone, so please ignore my previous post...

--
Ticket URL: <https://code.djangoproject.com/ticket/27445#comment:7>
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/065.c30e97470c50e4636916b6246b2274a0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to