Ticket #5081: patch.2.diff
File patch.2.diff, 440 bytes (added by , 17 years ago) |
---|
-
fields.py
old new 380 380 class BooleanField(Field): 381 381 widget = CheckboxInput 382 382 383 def __init__(self, required=False, *args, **kwargs): 384 super(BooleanField, self).__init__(required=required, *args, **kwargs) 385 383 386 def clean(self, value): 384 387 "Returns a Python boolean object." 385 388 super(BooleanField, self).clean(value)