mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +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:
committed by
Tim Graham
parent
26d0023ccc
commit
625b8e9295
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')),
|
||||
]
|
||||
Reference in New Issue
Block a user