Ticket #5081: patch.2.diff

File patch.2.diff, 440 bytes (added by k0001 <gnuk0001@…>, 17 years ago)

django/newforms/fields.py

  • fields.py

    old new  
    380380class BooleanField(Field):
    381381    widget = CheckboxInput
    382382
     383    def __init__(self, required=False, *args, **kwargs):
     384        super(BooleanField, self).__init__(required=required, *args, **kwargs)
     385
    383386    def clean(self, value):
    384387        "Returns a Python boolean object."
    385388        super(BooleanField, self).clean(value)
Back to Top