diff --git a/VERSION b/VERSION index 222a5c01..649273f9 100644 --- a/VERSION +++ b/VERSION @@ -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 diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 681e1259..ea382456 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -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')