mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #24931 -- Made namespaced RegexURLResolvers populate callback strings.
Fixed a regression in 2f16ff5a6c
.
Thanks Tim Graham for the review.
This commit is contained in:
parent
26d0023ccc
commit
625b8e9295
5 changed files with 60 additions and 1 deletions
14
tests/admin_docs/namespace_urls.py
Normal file
14
tests/admin_docs/namespace_urls.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from django.conf.urls import include, url
|
||||
from django.contrib import admin
|
||||
|
||||
from . import views
|
||||
|
||||
backend_urls = ([
|
||||
url(r'^something/$', views.XViewClass.as_view(), name='something'),
|
||||
], 'backend')
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
||||
url(r'^admin/', admin.site.urls),
|
||||
url(r'^api/backend/', include(backend_urls, namespace='backend')),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue