From 0b44392c3d96e23b202c8ad121720a8ff91bfed5 Mon Sep 17 00:00:00 2001 From: kevin howbrook Date: Fri, 29 Dec 2017 16:54:38 +0000 Subject: [PATCH] Add missing import to tagging docs (#4158) --- docs/reference/pages/model_recipes.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/reference/pages/model_recipes.rst b/docs/reference/pages/model_recipes.rst index e749b7d51..06a3131a4 100644 --- a/docs/reference/pages/model_recipes.rst +++ b/docs/reference/pages/model_recipes.rst @@ -166,6 +166,8 @@ Wagtail's admin provides a nice interface for inputting tags into your content, Now that we have the many-to-many tag relationship in place, we can fit in a way to render both sides of the relation. Here's more of the Wagtail demo site ``models.py``, where the index model for ``BlogPage`` is extended with logic for filtering the index by tag: .. code-block:: python + + from django.shortcuts import render class BlogIndexPage(Page): ...