Ticket #1477: urlfield_maxlength.diff
File urlfield_maxlength.diff, 816 bytes (added by , 19 years ago) |
---|
-
django/forms/__init__.py
834 834 835 835 class URLField(TextField): 836 836 "A convenience FormField for validating URLs" 837 def __init__(self, field_name, length=50, is_required=False, validator_list=[]):837 def __init__(self, field_name, length=50, maxlength=200, is_required=False, validator_list=[]): 838 838 validator_list = [self.isValidURL] + validator_list 839 TextField.__init__(self, field_name, length=length, maxlength= 200,839 TextField.__init__(self, field_name, length=length, maxlength=maxlength, 840 840 is_required=is_required, validator_list=validator_list) 841 841 842 842 def isValidURL(self, field_data, all_data):