Merge pull request #1474 from kaedroho/modelcluster-update

Fixed imports for moved modelcluster.tags module
pull/1468/merge
Karl Hobley 2015-07-06 11:53:37 +01:00
commit 3d457ecaef
5 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -154,7 +154,7 @@ Using an example from the Wagtail demo site, here's what the tag model and the r
.. code-block:: python
from modelcluster.fields import ParentalKey
from modelcluster.tags import ClusterTaggableManager
from modelcluster.contrib.taggit import ClusterTaggableManager
from taggit.models import Tag, TaggedItemBase
...
class BlogPageTag(TaggedItemBase):

Wyświetl plik

@ -4,7 +4,7 @@ from __future__ import unicode_literals
from django.db import models, migrations
import django.db.models.deletion
import django
import modelcluster.tags
import modelcluster.contrib.taggit
import wagtail.wagtailcore.fields
import modelcluster.fields
@ -508,7 +508,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='blogentrypage',
name='tags',
field=modelcluster.tags.ClusterTaggableManager(help_text='A comma-separated list of tags.', through='demosite.BlogEntryPageTag', blank=True, verbose_name='Tags', to='taggit.Tag'),
field=modelcluster.contrib.taggit.ClusterTaggableManager(help_text='A comma-separated list of tags.', through='demosite.BlogEntryPageTag', blank=True, verbose_name='Tags', to='taggit.Tag'),
preserve_default=True,
),
]

Wyświetl plik

@ -4,7 +4,7 @@ from django.db import models
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
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

Wyświetl plik

@ -4,7 +4,7 @@ from __future__ import unicode_literals
from django.db import models, migrations
import django.db.models.deletion
from django.conf import settings
import modelcluster.tags
import modelcluster.contrib.taggit
import wagtail.wagtailimages.models
import wagtail.wagtailadmin.taggable
import modelcluster.fields
@ -328,7 +328,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='taggedpage',
name='tags',
field=modelcluster.tags.ClusterTaggableManager(verbose_name='Tags', to='taggit.Tag', blank=True, through='tests.TaggedPageTag', help_text='A comma-separated list of tags.'),
field=modelcluster.contrib.taggit.ClusterTaggableManager(verbose_name='Tags', to='taggit.Tag', blank=True, through='tests.TaggedPageTag', help_text='A comma-separated list of tags.'),
preserve_default=True,
),
migrations.AddField(

Wyświetl plik

@ -7,7 +7,7 @@ from django.utils.encoding import python_2_unicode_compatible
from taggit.models import TaggedItemBase
from modelcluster.fields import ParentalKey
from modelcluster.tags import ClusterTaggableManager
from modelcluster.contrib.taggit import ClusterTaggableManager
from wagtail.wagtailcore.models import Page, Orderable
from wagtail.wagtailcore.fields import RichTextField, StreamField