Ticket #4686: IPAddressField.diff

File IPAddressField.diff, 496 bytes (added by ian.g.kelly@…, 17 years ago)
  • django/db/models/fields/__init__.py

     
    800800        return super(IntegerField, self).formfield(**defaults)
    801801
    802802class IPAddressField(Field):
     803    empty_strings_allowed = False
    803804    def __init__(self, *args, **kwargs):
    804805        kwargs['maxlength'] = 15
    805806        Field.__init__(self, *args, **kwargs)
Back to Top