#34286: Class based views cause 404 on admindocs.views.ViewDetailView
---------------------------------------------+------------------------
               Reporter:  letto4135          |          Owner:  nobody
                   Type:  Bug                |         Status:  new
              Component:  contrib.admindocs  |        Version:  4.1
               Severity:  Normal             |       Keywords:
           Triage Stage:  Unreviewed         |      Has patch:  0
    Needs documentation:  0                  |    Needs tests:  0
Patch needs improvement:  0                  |  Easy pickings:  0
                  UI/UX:  0                  |
---------------------------------------------+------------------------
 
https://github.com/django/django/blob/main/django/contrib/admindocs/views.py#L168

 Using a class based view,
 class OrderSearch(LoginRequiredMixin, UserPassesTestMixin, ListView):

 add a doc comment such as
 :view:`orders.views.Orders`

 causes a 404 when you click on the link in the docs

 Page not found (404)
 Request Method: GET
 Request URL:    http://localhost:8000/admin/doc/views/orders.views.orders/
 Raised by:      django.contrib.admindocs.views.ViewDetailView


 I'm not sure exactly where orders becomes lowercase, but I thought it
 might have something to do with the _get_view_func

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34286>
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 on the web visit 
https://groups.google.com/d/msgid/django-updates/01070185e0b2f957-1cd2bc89-bebc-40e6-9b10-7e300ae8db85-000000%40eu-central-1.amazonses.com.

Reply via email to