Ticket #4686: IPAddressField.diff
File IPAddressField.diff, 496 bytes (added by , 17 years ago) |
---|
-
django/db/models/fields/__init__.py
800 800 return super(IntegerField, self).formfield(**defaults) 801 801 802 802 class IPAddressField(Field): 803 empty_strings_allowed = False 803 804 def __init__(self, *args, **kwargs): 804 805 kwargs['maxlength'] = 15 805 806 Field.__init__(self, *args, **kwargs)