Ticket #11365: emailfield-max_length-r11092.patch

File emailfield-max_length-r11092.patch, 529 bytes (added by shellsage, 15 years ago)

Patch for correct EmailField max_length, against r11092

  • django/db/models/fields/__init__.py

     
    638638
    639639class EmailField(CharField):
    640640    def __init__(self, *args, **kwargs):
    641         kwargs['max_length'] = kwargs.get('max_length', 75)
     641        kwargs['max_length'] = kwargs.get('max_length', 254)
    642642        CharField.__init__(self, *args, **kwargs)
    643643
    644644    def formfield(self, **kwargs):
Back to Top