mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-29 17:36:49 +01:00
Merge pull request #3715 from emorozov/master
Backslash is not necessary when multi-line expression is parenthesized.
This commit is contained in:
commit
42d274a470
@ -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