fixed issue 1411, list of vars when using radiowidget, thanks Dmitry Mosin
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.4.5-stable+timestamp.2013.03.28.14.43.50
|
Version 2.4.5-stable+timestamp.2013.03.28.14.45.53
|
||||||
|
|||||||
@@ -349,6 +349,12 @@ class RadioWidget(OptionsWidget):
|
|||||||
see also: :meth:`FormWidget.widget`
|
see also: :meth:`FormWidget.widget`
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if isinstance(value, (list,tuple)):
|
||||||
|
value = str(value[0])
|
||||||
|
else:
|
||||||
|
value = str(value)
|
||||||
|
|
||||||
|
|
||||||
attr = cls._attributes(field, {}, **attributes)
|
attr = cls._attributes(field, {}, **attributes)
|
||||||
attr['_class'] = attr.get('_class', 'web2py_radiowidget')
|
attr['_class'] = attr.get('_class', 'web2py_radiowidget')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user