Ticket #5342: new_emailfield.diff
File new_emailfield.diff, 981 bytes (added by , 17 years ago) |
---|
-
django/db/models/fields/__init__.py
680 680 681 681 class EmailField(CharField): 682 682 def __init__(self, *args, **kwargs): 683 kwargs['max_length'] = 75 683 if 'max_length' not in kwargs: 684 kwargs['max_length'] = 75 684 685 CharField.__init__(self, *args, **kwargs) 685 686 686 687 def get_internal_type(self): -
docs/model-api.txt
221 221 ~~~~~~~~~~~~~~ 222 222 223 223 A ``CharField`` that checks that the value is a valid e-mail address. 224 This doesn't accept ``max_length``; its ``max_length`` is automatically set to 225 75. 224 If ``max_length`` isn't specified, it is automatically set to 75. 226 225 227 226 ``FileField`` 228 227 ~~~~~~~~~~~~~