From 9886cb047604696b9a4785e439ae840a72436d4d Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Wed, 27 Jan 2021 09:21:42 +0000 Subject: [PATCH] add missing : to after_create_page example --- docs/reference/hooks.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/hooks.rst b/docs/reference/hooks.rst index 85b36840eb..c4af7870fa 100644 --- a/docs/reference/hooks.rst +++ b/docs/reference/hooks.rst @@ -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: