mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-16 03:03:14 +00:00
Add missing import to tagging docs (#4158)
This commit is contained in:
parent
4a7320a0db
commit
0b44392c3d
1 changed files with 2 additions and 0 deletions
|
|
@ -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):
|
||||
...
|
||||
|
|
|
|||
Loading…
Reference in a new issue