#28966: GUID without "-" is not recognized by url path
---------------------------------------+------------------------
               Reporter:  Jahongir     |          Owner:  nobody
                   Type:  Bug          |         Status:  new
              Component:  Core (URLs)  |        Version:  2.0
               Severity:  Normal       |       Keywords:  urls
           Triage Stage:  Unreviewed   |      Has patch:  0
    Needs documentation:  0            |    Needs tests:  0
Patch needs improvement:  0            |  Easy pickings:  0
                  UI/UX:  0            |
---------------------------------------+------------------------
 I have this url path:

     path('driver/<uuid:driver_guid>/logs/', views.LogListView.as_view(),
 name='list-logs'),

 If I try this: `reverse('list-logs', kwargs={'driver_guid':
 '3d2dde2ef06d465283c8849e9eba7bae'})`, it does not find the path because
 the guid does not have '-'.

 If I try `reverse('list-logs', kwargs={'driver_guid': '3d2dde2e-
 f06d-4652-83c8-849e9eba7bae'})` it does work.

 The problem is that `3d2dde2ef06d465283c8849e9eba7bae` is also a valid
 uuid.

 I think it should be recognized as well.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28966>
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/051.317d873ce769bb8152f5bb73cd0cef73%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to