From 9fab50e87a10af4378ef1f2ecc1d3f78c5c45ba6 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Mon, 19 Oct 2020 18:11:12 +0100 Subject: [PATCH] remove trailing whitespace --- docs/reference/hooks.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/hooks.rst b/docs/reference/hooks.rst index f5cdeabdbc..2c913f90d6 100644 --- a/docs/reference/hooks.rst +++ b/docs/reference/hooks.rst @@ -478,9 +478,9 @@ Hooks for customising the way users are directed through the process of creating return HttpResponse("Congrats on making content!", content_type="text/plain") If you set attributes on a ``Page`` object, you should also call ``save_revision()``, since the edit and index view pick up their data from the revisions table rather than the actual saved page record. - + .. code-block:: python - + @hooks.register('after_create_page') def set_attribute_after_page_create(request, page) page.title = 'Persistent Title'