mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Specify app_name in url includes that have namespace
This commit is contained in:
parent
d37d54e62e
commit
b4bbb7bcb1
@ -8,5 +8,5 @@ from . import urls
|
||||
@hooks.register('register_admin_urls')
|
||||
def register_admin_urls():
|
||||
return [
|
||||
url(r'^settings/', include(urls, namespace='wagtailsettings')),
|
||||
url(r'^settings/', include(urls, app_name='wagtailsettings', namespace='wagtailsettings')),
|
||||
]
|
||||
|
@ -12,7 +12,7 @@ from wagtail.wagtailadmin.menu import MenuItem
|
||||
@hooks.register('register_admin_urls')
|
||||
def register_admin_urls():
|
||||
return [
|
||||
url(r'^searchpicks/', include(admin_urls, namespace='wagtailsearchpromotions')),
|
||||
url(r'^searchpicks/', include(admin_urls, app_name='wagtailsearchpromotions', namespace='wagtailsearchpromotions')),
|
||||
]
|
||||
|
||||
|
||||
|
@ -20,7 +20,7 @@ urlpatterns = [
|
||||
url(r'^pages/$', pages.index, name='wagtailadmin_explore_root'),
|
||||
url(r'^pages/(\d+)/$', pages.index, name='wagtailadmin_explore'),
|
||||
|
||||
url(r'^pages/', include(wagtailadmin_pages_urls, namespace='wagtailadmin_pages')),
|
||||
url(r'^pages/', include(wagtailadmin_pages_urls, app_name='wagtailadmin_pages', namespace='wagtailadmin_pages')),
|
||||
|
||||
# TODO: Move into wagtailadmin_pages namespace
|
||||
url(r'^choose-page/$', chooser.browse, name='wagtailadmin_choose_page'),
|
||||
|
@ -17,7 +17,7 @@ from wagtail.wagtaildocs.rich_text import DocumentLinkHandler
|
||||
@hooks.register('register_admin_urls')
|
||||
def register_admin_urls():
|
||||
return [
|
||||
url(r'^documents/', include(admin_urls, namespace='wagtaildocs')),
|
||||
url(r'^documents/', include(admin_urls, app_name='wagtaildocs', namespace='wagtaildocs')),
|
||||
]
|
||||
|
||||
|
||||
|
@ -11,7 +11,7 @@ from wagtail.wagtailembeds.rich_text import MediaEmbedHandler
|
||||
@hooks.register('register_admin_urls')
|
||||
def register_admin_urls():
|
||||
return [
|
||||
url(r'^embeds/', include(urls, namespace='wagtailembeds')),
|
||||
url(r'^embeds/', include(urls, app_name='wagtailembeds', namespace='wagtailembeds')),
|
||||
]
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@ from wagtail.wagtailforms.models import get_forms_for_user
|
||||
@hooks.register('register_admin_urls')
|
||||
def register_admin_urls():
|
||||
return [
|
||||
url(r'^forms/', include(urls, namespace='wagtailforms')),
|
||||
url(r'^forms/', include(urls, app_name='wagtailforms', namespace='wagtailforms')),
|
||||
]
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@ from wagtail.wagtailadmin.menu import MenuItem
|
||||
@hooks.register('register_admin_urls')
|
||||
def register_admin_urls():
|
||||
return [
|
||||
url(r'^redirects/', include(urls, namespace='wagtailredirects')),
|
||||
url(r'^redirects/', include(urls, app_name='wagtailredirects', namespace='wagtailredirects')),
|
||||
]
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@ from wagtail.wagtailsites import urls
|
||||
@hooks.register('register_admin_urls')
|
||||
def register_admin_urls():
|
||||
return [
|
||||
url(r'^sites/', include(urls, namespace='wagtailsites')),
|
||||
url(r'^sites/', include(urls, app_name='wagtailsites', namespace='wagtailsites')),
|
||||
]
|
||||
|
||||
|
||||
|
@ -16,7 +16,7 @@ from wagtail.wagtailsnippets.models import get_snippet_content_types
|
||||
@hooks.register('register_admin_urls')
|
||||
def register_admin_urls():
|
||||
return [
|
||||
url(r'^snippets/', include(urls, namespace='wagtailsnippets')),
|
||||
url(r'^snippets/', include(urls, app_name='wagtailsnippets', namespace='wagtailsnippets')),
|
||||
]
|
||||
|
||||
|
||||
|
@ -14,8 +14,8 @@ from wagtail.wagtailusers.urls import users, groups
|
||||
@hooks.register('register_admin_urls')
|
||||
def register_admin_urls():
|
||||
return [
|
||||
url(r'^users/', include(users, namespace='wagtailusers_users')),
|
||||
url(r'^groups/', include(groups, namespace='wagtailusers_groups')),
|
||||
url(r'^users/', include(users, app_name='wagtailusers_users', namespace='wagtailusers_users')),
|
||||
url(r'^groups/', include(groups, app_name='wagtailusers_groups', namespace='wagtailusers_groups')),
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user