Ticket #5081: patch.diff

File patch.diff, 418 bytes (added by k0001 <gnuk0001@…>, 8 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__(args, kwargs)
     385
    383386    def clean(self, value):
    384387        "Returns a Python boolean object."
    385388        super(BooleanField, self).clean(value)
Back to Top