mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-03-16 22:10:28 +00:00
Missing class imports
This commit is contained in:
parent
13b485a2a9
commit
e8c64e593d
1 changed files with 4 additions and 0 deletions
|
|
@ -624,6 +624,8 @@ Hooks for customising the way admins are directed through the process of editing
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
from django.http import HttpResponse
|
||||
|
||||
from wagtail.core import hooks
|
||||
|
||||
from .models import AwesomePage
|
||||
|
|
@ -852,6 +854,8 @@ Page serving
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
from django.http import HttpResponse
|
||||
|
||||
from wagtail.core import hooks
|
||||
|
||||
@hooks.register('before_serve_page')
|
||||
|
|
|
|||
Loading…
Reference in a new issue