From fc0200857b4cb595395e4320272abd77c85c89be Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sun, 20 Nov 2005 23:48:36 +0000 Subject: [PATCH] Gave formfields.EmailField a maxlength kwarg git-svn-id: http://code.djangoproject.com/svn/django/trunk@1317 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/formfields.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/core/formfields.py b/django/core/formfields.py index dc016684f0..fae239987a 100644 --- a/django/core/formfields.py +++ b/django/core/formfields.py @@ -672,9 +672,9 @@ class TimeField(TextField): class EmailField(TextField): "A convenience FormField for validating e-mail addresses" - def __init__(self, field_name, length=50, is_required=False, validator_list=[]): + def __init__(self, field_name, length=50, maxlength=75, is_required=False, validator_list=[]): validator_list = [self.isValidEmail] + validator_list - TextField.__init__(self, field_name, length, maxlength=75, + TextField.__init__(self, field_name, length, maxlength=maxlength, is_required=is_required, validator_list=validator_list) def isValidEmail(self, field_data, all_data):