mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-26 01:24:49 +00:00
Fix deprecated import of modelcluster.tags in tutorial
This commit is contained in:
parent
b77848de20
commit
6bc6480cd2
2 changed files with 3 additions and 2 deletions
|
|
@ -242,6 +242,7 @@ Contributors
|
|||
* John Franey
|
||||
* Marc Tudurí
|
||||
* Lucas Moeskops
|
||||
* Rob van der Linde
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
|||
|
|
@ -569,7 +569,7 @@ First, alter ``models.py`` once more:
|
|||
# New imports added for ClusterTaggableManager, TaggedItemBase, MultiFieldPanel
|
||||
|
||||
from modelcluster.fields import ParentalKey
|
||||
from modelcluster.tags import ClusterTaggableManager
|
||||
from modelcluster.contrib.taggit import ClusterTaggableManager
|
||||
from taggit.models import TaggedItemBase
|
||||
|
||||
from wagtail.wagtailcore.models import Page, Orderable
|
||||
|
|
@ -758,7 +758,7 @@ We can now add categories to the ``BlogPage`` model, as a many-to-many field. Th
|
|||
from django.db import models
|
||||
|
||||
from modelcluster.fields import ParentalKey, ParentalManyToManyField
|
||||
from modelcluster.tags import ClusterTaggableManager
|
||||
from modelcluster.contrib.taggit import ClusterTaggableManager
|
||||
from taggit.models import TaggedItemBase
|
||||
|
||||
# ...
|
||||
|
|
|
|||
Loading…
Reference in a new issue