# HG changeset patch # User Sylvain Thénault # Date 1261066956 -3600 # Node ID d8ca873142f4c52b105d0c6ca2a7602822fa59ac # Parent 9560ff49b2db5e0e527d2c243106cb17574a1b73 call super class if choices specified to get std behaviour diff -r 9560ff49b2db -r d8ca873142f4 web/formfields.py --- a/web/formfields.py Thu Dec 17 16:18:36 2009 +0100 +++ b/web/formfields.py Thu Dec 17 17:22:36 2009 +0100 @@ -414,7 +414,7 @@ def vocabulary(self, form): if self.choices: - return self.choices + return super(BooleanField, self).vocabulary(form) return [(form.req._('yes'), '1'), (form.req._('no'), '')]