klipstein/dojango — Issue #45: 45 - RadioSelect widget is not compatible with django 
Author: klipstein
Created: 2011-11-06 12:59:03+00:00
State: open

What steps will reproduce the problem?
1. Create a new django.forms.widgets.RadioSelect(choices=('A', 'B')). That
works
2. Create a new dojango.forms.widgets.RadioSelect(choices=('A', 'B')). That
does not work
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
0.4.6 on Windows

Please provide any additional information below.
Fix:
In dojango/forms/widgets.py change

class RadioSelect(DojoWidgetMixin, widgets.RadioSelect):
dojo_type = 'dijit.form.RadioButton'

def __init__(self, attrs=None):
if dojo_config.version < '1.3':
self.alt_require = 'dijit.form.CheckBox'
super(RadioSelect, self).__init__(attrs)

to

class RadioSelect(DojoWidgetMixin, widgets.RadioSelect):
dojo_type = 'dijit.form.RadioButton'

def __init__(self, attrs=None, choices=()):
if dojo_config.version < '1.3':
self.alt_require = 'dijit.form.CheckBox'
super(RadioSelect, self).__init__(attrs, choices)

Original link: http://code.google.com/p/dojango/issues/detail?id=45