diff --git a/wagtail/wagtailadmin/taggable.py b/wagtail/wagtailadmin/taggable.py index b551e93023..56f0cf3467 100644 --- a/wagtail/wagtailadmin/taggable.py +++ b/wagtail/wagtailadmin/taggable.py @@ -7,7 +7,7 @@ from django.db.models import Count from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from wagtail.wagtailsearch import index -from wagtail.utils.deprecation import RemovedInWagtail13Warning +from wagtail.utils.deprecation import RemovedInWagtail14Warning class TagSearchable(index.Indexed): @@ -34,7 +34,7 @@ class TagSearchable(index.Indexed): warnings.warn( "The {class_name}.search() method is deprecated. " "Please use the {class_name}.objects.search() method instead.".format(class_name=cls.__name__), - RemovedInWagtail13Warning, stacklevel=2) + RemovedInWagtail14Warning, stacklevel=2) results = cls.objects.all() diff --git a/wagtail/wagtailcore/models.py b/wagtail/wagtailcore/models.py index 9fd50c4378..88fca95a4a 100644 --- a/wagtail/wagtailcore/models.py +++ b/wagtail/wagtailcore/models.py @@ -42,7 +42,7 @@ from wagtail.wagtailcore.signals import page_published, page_unpublished from wagtail.wagtailsearch import index from wagtail.wagtailsearch.backends import get_search_backend -from wagtail.utils.deprecation import RemovedInWagtail13Warning +from wagtail.utils.deprecation import RemovedInWagtail13Warning, RemovedInWagtail14Warning logger = logging.getLogger('wagtail.core') @@ -641,7 +641,7 @@ class Page(six.with_metaclass(PageBase, MP_Node, ClusterableModel, index.Indexed warnings.warn( "The Page.search() method is deprecated. " "Please use the Page.objects.search() method instead.", - RemovedInWagtail13Warning, stacklevel=2) + RemovedInWagtail14Warning, stacklevel=2) # Filters filters = extra_filters.copy()