Ticket #5563: booleanfield-to-python-can-be-none.patch
File booleanfield-to-python-can-be-none.patch, 533 bytes (added by , 17 years ago) |
---|
-
__init__.py
405 405 if value in (True, False): return value 406 406 if value in ('t', 'True', '1'): return True 407 407 if value in ('f', 'False', '0'): return False 408 if value is None and self.null == True: return None 408 409 raise validators.ValidationError, gettext("This value must be either True or False.") 409 410 410 411 def get_manipulator_field_objs(self):