0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

add missing : to after_create_page example

This commit is contained in:
Matt Westcott 2021-01-27 09:21:42 +00:00
parent 0dbd69f491
commit 9886cb0476

View File

@ -483,7 +483,7 @@ Hooks for customising the way users are directed through the process of creating
.. code-block:: python
@hooks.register('after_create_page')
def set_attribute_after_page_create(request, page)
def set_attribute_after_page_create(request, page):
page.title = 'Persistent Title'
new_revision = page.save_revision()
if page.live: