#28883: uuid URL path converter failed if UUID is anything but lowercase
-----------------------------+-----------------------------------------
     Reporter:  Jean-Daniel  |                    Owner:  Daniel Leicht
         Type:  Bug          |                   Status:  assigned
    Component:  Core (URLs)  |                  Version:  2.0
     Severity:  Normal       |               Resolution:
     Keywords:  uuid         |             Triage Stage:  Unreviewed
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+-----------------------------------------

Comment (by Daniel Leicht):

 As far as I understand their decision was to remove support for the
 general use of case insensitive URLs by using the Lmsu flags.
 If the author has a special use case (like matching a UUID) he can still
 use a regex like "[a-zA-Z]+" to match it.

 Btw, the string, slug & path converters were already case insensitive:

 {{{
 class StringConverter:
     regex = '[^/]+'

     def to_python(self, value):
         return value

     def to_url(self, value):
         return value

 class SlugConverter(StringConverter):
     regex = '[-a-zA-Z0-9_]+'


 class PathConverter(StringConverter):
     regex = '.+'


 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28883#comment:5>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.421f4d56c1a167f52db0e453d0dd0640%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to