mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Backslash is not necessary when multi-line expression is parenthesized.
This commit is contained in:
parent
f85f186cea
commit
7b55c5094f
@ -163,15 +163,15 @@ Hooks for building new areas of the admin interface (alongside pages, images, do
|
||||
|
||||
from wagtail.wagtailcore import hooks
|
||||
|
||||
def admin_view( request ):
|
||||
return HttpResponse( \
|
||||
"I have approximate knowledge of many things!", \
|
||||
def admin_view(request):
|
||||
return HttpResponse(
|
||||
"I have approximate knowledge of many things!",
|
||||
content_type="text/plain")
|
||||
|
||||
@hooks.register('register_admin_urls')
|
||||
def urlconf_time():
|
||||
return [
|
||||
url(r'^how_did_you_almost_know_my_name/$', admin_view, name='frank' ),
|
||||
url(r'^how_did_you_almost_know_my_name/$', admin_view, name='frank'),
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user