Commits

Christoph Haas committed c727456

tags/select() now supports single integer values in selected_values

Comments (0)

Files changed (1)

webhelpers/html/tags.py

     for option in options:
         if isinstance(option, basestring):
             label = value = option
+        elif isinstance(option, int):
+            label = value = unicode(option)
         else:
             label = unicode(option[0])
             value = unicode(option[1])