#3671: Specify a selected item in widget.RadioSelect() for a BooleanField -------------------------------------+------------------------------------- Reporter: David Larlet | Owner: adrian <larlet@…> | Status: closed Type: Uncategorized | Version: SVN Component: Forms | Resolution: fixed Severity: Normal | Triage Stage: Keywords: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by fazal.sulaiman@…):
* ui_ux: => 0 * type: => Uncategorized * severity: => Normal * easy: => 0 Comment: foo = forms.BooleanField(widget=widgets.RadioSelect(choices=[(1, 'Yes'), (2, 'No')]), initial='1') Replying to [ticket:3671 David Larlet <larlet@…>]: > Here is my model: > > foo = forms.BooleanField(widget=widgets.RadioSelect(choices=[(1, 'Yes'), (2, 'No')])) > > I can't specify 'No' as default choice of my radio input. -- Ticket URL: <https://code.djangoproject.com/ticket/3671#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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.