fixed issue 1411, list of vars when using radiowidget, thanks Dmitry Mosin

This commit is contained in:
mdipierro
2013-03-28 14:46:31 -05:00
parent 515e284c22
commit bf5fbd8b09
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -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
+6
View File
@@ -349,6 +349,12 @@ class RadioWidget(OptionsWidget):
see also: :meth:`FormWidget.widget`
"""
if isinstance(value, (list,tuple)):
value = str(value[0])
else:
value = str(value)
attr = cls._attributes(field, {}, **attributes)
attr['_class'] = attr.get('_class', 'web2py_radiowidget')