#36054: Add schemes parameter to URLField for custom URL scheme validation
-------------------------------------+-------------------------------------
     Reporter:  Youngkwang Yang      |                    Owner:
                                     |  Youngkwang Yang
         Type:  New feature          |                   Status:  closed
    Component:  Forms                |                  Version:  dev
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  URLField,            |             Triage Stage:
  forms.URLField, schemes, URL       |  Unreviewed
  validation, custom schemes         |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Youngkwang Yang):

 thank you for your response.

 The method you suggested is effective for restricting existing URL schemes
 to https, but it makes extending schemes like custom-scheme, deeplink, or
 mailto:// challenging. This is because the validators passed as arguments
 are combined with the existing default_validators, causing URLValidator
 validation to run twice.

 thank you for the guidance! I will start a discussion about this feature
 on the Django Forum.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36054#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070194264fec6f-7fbe60fb-e3d9-499d-91db-686cb7e4872b-000000%40eu-central-1.amazonses.com.

Reply via email to