[Django] #34286: Class based views cause 404 on admindocs.views.ViewDetailView

5 views
Skip to first unread message

Django

unread,
Jan 23, 2023, 5:15:09 PM1/23/23
to django-...@googlegroups.com
#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.

Reply all
Reply to author
Forward
0 new messages