Ticket #5622: 5622.1.patch

File 5622.1.patch, 420 bytes (added by Thomas Kerpe, 17 years ago)

Alternative Patch at newforms-level

  • django/newforms/fields.py

     
    750750
    751751    def __init__(self, *args, **kwargs):
    752752        super(IPAddressField, self).__init__(ipv4_re, *args, **kwargs)
     753
     754    def clean(self, value):
     755        return super(RegexField, self).clean(value) or None
Back to Top