1. Andriy Kornatskyy
  2. wheezy.html

Commits

Andriy Kornatskyy  committed 53c4c62

attrs are required for dropdown widget

  • Participants
  • Parent commits daeee3d
  • Branches default

Comments (0)

Files changed (1)

File src/wheezy/html/widgets.py

View file
     return Tag('label', inner=value, attrs=tag_attrs)
 
 
-def dropdown(name, value, attrs=None):
+def dropdown(name, value, attrs):
     """
         >>> colors = (('1', 'Yellow'), ('2', 'Red'))
         >>> dropdown('favorite_color', '1', attrs={