Changes between Initial Version and Version 1 of Ticket #26418


Ignore:
Timestamp:
Mar 29, 2016, 11:48:54 AM (9 years ago)
Author:
Tim Graham
Comment:

It's not entirely clear what your proposal is, however, changing the default list of accepted schemes would be backwards-incompatible as described in #25593.

I believe solving #25594 would ease customizing the list of schemes and address the concern of this ticket.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26418 – Description

    initial v1  
    22
    33checking the source, it is validated twice
    4 
     4{{{
    55class URLField(CharField):
    6  ''   default_validators = [validators.URLValidator()]
     6    default_validators = [validators.URLValidator()]
    77    description = _("URL")
    8 
     8}}}
    99And
    10 
     10{{{
    1111    def formfield(self, **kwargs):
    1212        # As with CharField, this will cause URL validation to be performed
     
    1515            'form_class': forms.URLField,
    1616        }
    17 
    18 
     17}}}
    1918
    2019in django.core.validators.UrlValidator we find at least one of the culprits:
    21 
     20{{{
    2221    schemes = ['http', 'https', 'ftp', 'ftps']
    23 
     22}}}
    2423
    2524
Back to Top