# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1241087774 -7200 # Node ID 25b46db3cb813af7f86431e3f40077e3ea1ab978 # Parent 3bfcf1e4eb26fc2c58161e936412e5d2213102f6 should set field's choices diff -r 3bfcf1e4eb26 -r 25b46db3cb81 web/formfields.py --- 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: