From e8c64e593d5924ef6de6e563e01fb11bb1bde700 Mon Sep 17 00:00:00 2001 From: kevinhowbrook Date: Sat, 8 Jun 2019 23:15:13 +0100 Subject: [PATCH] Missing class imports --- docs/reference/hooks.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/reference/hooks.rst b/docs/reference/hooks.rst index cb7e06b21..2d7c233f8 100644 --- a/docs/reference/hooks.rst +++ b/docs/reference/hooks.rst @@ -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')