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:
parent
0dbd69f491
commit
9886cb0476
@ -483,7 +483,7 @@ Hooks for customising the way users are directed through the process of creating
|
|||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
@hooks.register('after_create_page')
|
@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'
|
page.title = 'Persistent Title'
|
||||||
new_revision = page.save_revision()
|
new_revision = page.save_revision()
|
||||||
if page.live:
|
if page.live:
|
||||||
|
Loading…
Reference in New Issue
Block a user