web/formfields.py
changeset 4181 c79135c217df
parent 4171 f1b9f0ed1253
parent 4131 d8ca873142f4
child 4225 c49bb6e3d343
--- a/web/formfields.py	Tue Dec 22 09:27:28 2009 +0100
+++ b/web/formfields.py	Tue Dec 22 10:27:49 2009 +0100
@@ -618,7 +618,7 @@
 
     def vocabulary(self, form):
         if self.choices:
-            return self.choices
+            return super(BooleanField, self).vocabulary(form)
         return [(form._cw._('yes'), '1'), (form._cw._('no'), '')]
 
     def process_form_value(self, form):