Features deprecated in 1.2 should use RemovedInWagtail14Warning

pull/1803/head
Matt Westcott 2015-10-07 16:19:34 +01:00
rodzic 39b231ab52
commit 2c898bf536
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -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()

Wyświetl plik

@ -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()