Skip to content
Browse files

Gave formfields.EmailField a maxlength kwarg

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent d778326 commit fc0200857b4cb595395e4320272abd77c85c89be @adrianholovaty adrianholovaty committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/
4 django/core/
@@ -672,9 +672,9 @@ def html2python(data):
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):

0 comments on commit fc02008

Please sign in to comment.
Something went wrong with that request. Please try again.