0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 09:33:54 +01:00

Backslash is not necessary when multi-line expression is parenthesized.

This commit is contained in:
Eugene Morozov 2017-07-18 09:56:42 +03:00
parent f85f186cea
commit 7b55c5094f

View File

@ -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'),
]