branch | tls-sprint |
changeset 1577 | 25b46db3cb81 |
parent 1574 | 0c6dbb774f54 |
child 1706 | 491a2ca3aaef |
--- a/web/formfields.py Thu Apr 30 12:35:49 2009 +0200 +++ b/web/formfields.py Thu Apr 30 12:36:14 2009 +0200 @@ -460,6 +460,7 @@ for cstr in constraints: if isinstance(cstr, StaticVocabularyConstraint): kwargs.setdefault('widget', Select()) + kwargs.setdefault('choices', cstr.vocabulary) if card in '?1': kwargs['widget'].attrs.setdefault('size', 1) if isinstance(cstr, SizeConstraint) and cstr.max is not None: