diff --git a/src/common/dataforms.py b/src/common/dataforms.py index e46fcbfc2..0b59d7471 100644 --- a/src/common/dataforms.py +++ b/src/common/dataforms.py @@ -170,7 +170,7 @@ class BooleanField(DataField): v = self.getTagData('value') if v in ('0', 'false'): return False if v in ('1', 'true'): return True - if v is None: return None + if v is None: return False # default value is False raise WrongFieldValue def fset(self, value): self.setTagData('value', value and '1' or '0')