Skip to content
Browse files

Fixed #1477 -- Made maxlength overridablef for URLField formfield

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 05fd735 commit 0627ad320c6383b4be00ac9b18df46c9a1617b81 @adrianholovaty adrianholovaty committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/forms/
4 django/forms/
@@ -836,9 +836,9 @@ def isValidEmail(self, field_data, all_data):
class URLField(TextField):
"A convenience FormField for validating URLs"
- def __init__(self, field_name, length=50, is_required=False, validator_list=[]):
+ def __init__(self, field_name, length=50, maxlength=200, is_required=False, validator_list=[]):
validator_list = [self.isValidURL] + validator_list
- TextField.__init__(self, field_name, length=length, maxlength=200,
+ TextField.__init__(self, field_name, length=length, maxlength=maxlength,
is_required=is_required, validator_list=validator_list)
def isValidURL(self, field_data, all_data):

0 comments on commit 0627ad3

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