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

Comment (by Takis Issaris):

 Hi,

 I can confirm that specifying the widget removes all input/select tags:
 {{{
 from app27445.forms import MyTestModelForm
 str(MyTestModelForm())
 <tr><th><label for="id_foo">Foo:</label></th><td><select id="id_foo"
 name="foo">\n<option value="1" selected>Unknown</option>\n<option
 value="2">Yes</option>\n<option value="3">No</option>\n</select></td></tr>
 }}}

 {{{
 from app27445.forms import MyTestModelForm
 str(MyTestModelForm())
 <tr><th><label for="id_foo_0">Foo:</label></th><td><ul
 id="id_foo"></ul></td></tr>
 }}}

 But I do not think this is specific to NullBooleanField as I get the same
 output when using the BooleanField.

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

Reply via email to