Ticket #11365: emailfield-max_length-r11092.patch
File emailfield-max_length-r11092.patch, 529 bytes (added by , 15 years ago) |
---|
-
django/db/models/fields/__init__.py
638 638 639 639 class EmailField(CharField): 640 640 def __init__(self, *args, **kwargs): 641 kwargs['max_length'] = kwargs.get('max_length', 75)641 kwargs['max_length'] = kwargs.get('max_length', 254) 642 642 CharField.__init__(self, *args, **kwargs) 643 643 644 644 def formfield(self, **kwargs):