Changeset 6205
- Timestamp:
- 09/14/07 14:22:43 (1 year ago)
- Files:
-
- django/trunk/django/db/models/fields/__init__.py (modified) (1 diff)
- django/trunk/docs/model-api.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/db/models/fields/__init__.py
r6195 r6205 687 687 class EmailField(CharField): 688 688 def __init__(self, *args, **kwargs): 689 kwargs['max_length'] = 75 689 if 'max_length' not in kwargs: 690 kwargs['max_length'] = 75 690 691 CharField.__init__(self, *args, **kwargs) 691 692 django/trunk/docs/model-api.txt
r6179 r6205 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 225 In Django 0.96, this doesn't accept ``max_length``; its ``max_length`` is 226 automatically set to 75. In the Django development version, ``max_length`` is 227 set to 75 by default, but you can specify it to override default behavior. 226 228 227 229 ``FileField``
