web/formfields.py
branchstable
changeset 4131 d8ca873142f4
parent 3874 7d0d4a6be046
child 4181 c79135c217df
child 4212 ab6573088b4a
--- 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'), '')]