web/formfields.py
changeset 7231 18bcb98d129a
parent 7166 dde161937d3e
child 7460 2455cdbeadca
child 7572 a554010417ce
--- a/web/formfields.py	Fri Apr 15 08:22:38 2011 +0200
+++ b/web/formfields.py	Fri Apr 15 12:58:31 2011 +0200
@@ -875,7 +875,9 @@
         if self.choices:
             return super(BooleanField, self).vocabulary(form)
         if self.allow_none:
-            return [('', ''), (form._cw._('yes'), '1'), (form._cw._('no'), '0')]
+            return [(form._cw._('indifferent'), ''),
+                    (form._cw._('yes'), '1'),
+                    (form._cw._('no'), '0')]
         # XXX empty string for 'no' in that case for bw compat
         return [(form._cw._('yes'), '1'), (form._cw._('no'), '')]