From bdbcf3cd99d5b44ca275e38da5e6bab0ab181609 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Tue, 24 Jun 2014 09:53:41 +0100 Subject: [PATCH] Updated deprecation warning messages of moved template tags libraries --- wagtail/wagtailcore/templatetags/pageurl.py | 4 ++-- wagtail/wagtailcore/templatetags/rich_text.py | 4 ++-- wagtail/wagtailembeds/templatetags/embed_filters.py | 4 ++-- wagtail/wagtailimages/templatetags/image_tags.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wagtail/wagtailcore/templatetags/pageurl.py b/wagtail/wagtailcore/templatetags/pageurl.py index fe64a302f..b31756c30 100644 --- a/wagtail/wagtailcore/templatetags/pageurl.py +++ b/wagtail/wagtailcore/templatetags/pageurl.py @@ -1,8 +1,8 @@ import warnings warnings.warn( - "The pageurl tags has been renamed. " - "Use wagtailcore_tags instead.", DeprecationWarning) + "The pageurl tag library has been moved to wagtailcore_tags. " + "Use {% load wagtailcore_tags %} instead.", DeprecationWarning) from wagtail.wagtailcore.templatetags.wagtailcore_tags import register diff --git a/wagtail/wagtailcore/templatetags/rich_text.py b/wagtail/wagtailcore/templatetags/rich_text.py index 94c2d176c..ed8ac6f0f 100644 --- a/wagtail/wagtailcore/templatetags/rich_text.py +++ b/wagtail/wagtailcore/templatetags/rich_text.py @@ -1,8 +1,8 @@ import warnings warnings.warn( - "The rich_text tags has been renamed. " - "Use wagtailcore_tags instead.", DeprecationWarning) + "The rich_text tag library has been moved to wagtailcore_tags. " + "Use {% load wagtailcore_tags %} instead.", DeprecationWarning) from wagtail.wagtailcore.templatetags.wagtailcore_tags import register diff --git a/wagtail/wagtailembeds/templatetags/embed_filters.py b/wagtail/wagtailembeds/templatetags/embed_filters.py index 25326fec6..7d3500e58 100644 --- a/wagtail/wagtailembeds/templatetags/embed_filters.py +++ b/wagtail/wagtailembeds/templatetags/embed_filters.py @@ -1,8 +1,8 @@ import warnings warnings.warn( - "The embed_filters tags has been renamed. " - "Use wagtailembeds_tags instead.", DeprecationWarning) + "The embed_filters tag library has been moved to wagtailcore_tags. " + "Use {% load wagtailembeds_tags %} instead.", DeprecationWarning) from wagtail.wagtailembeds.templatetags.wagtailembeds_tags import register diff --git a/wagtail/wagtailimages/templatetags/image_tags.py b/wagtail/wagtailimages/templatetags/image_tags.py index 7eba192d4..9a96356c9 100644 --- a/wagtail/wagtailimages/templatetags/image_tags.py +++ b/wagtail/wagtailimages/templatetags/image_tags.py @@ -1,8 +1,8 @@ import warnings warnings.warn( - "The image_tags tags has been renamed. " - "Use wagtailimages_tags instead.", DeprecationWarning) + "The image_tags tag library has been moved to wagtailcore_tags. " + "Use {% load wagtailimages_tags %} instead.", DeprecationWarning) from wagtail.wagtailimages.templatetags.wagtailimages_tags import register