Ticket #3130: boolfield.diff
File boolfield.diff, 357 bytes (added by , 18 years ago) |
---|
-
fields.py
252 252 253 253 def clean(self, value): 254 254 "Returns a Python boolean object." 255 if value is None: 256 value = False 255 257 Field.clean(self, value) 256 258 return bool(value) 257 259