kopia lustrzana https://github.com/wagtail/wagtail
remove trailing whitespace
rodzic
b5cfca31eb
commit
9fab50e87a
|
@ -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'
|
||||
|
|
Ładowanie…
Reference in New Issue