Ticket #4067: 4067.patch
File 4067.patch, 664 bytes (added by , 18 years ago) |
---|
-
django/db/models/fields/__init__.py
732 732 kwargs['maxlength'] = 15 733 733 Field.__init__(self, *args, **kwargs) 734 734 735 def formfield(self, **kwargs): 736 defaults = {'required': not self.blank, 'label': capfirst(self.verbose_name), 'help_text': self.help_text} 737 defaults.update(kwargs) 738 return forms.RegexField(validators.ip4_re, **defaults) 739 735 740 def get_manipulator_field_objs(self): 736 741 return [oldforms.IPAddressField] 737 742