diff --git a/wagtail/wagtailembeds/templatetags/wagtailembeds_tags.py b/wagtail/wagtailembeds/templatetags/wagtailembeds_tags.py index 6f81c126c..219a65366 100644 --- a/wagtail/wagtailembeds/templatetags/wagtailembeds_tags.py +++ b/wagtail/wagtailembeds/templatetags/wagtailembeds_tags.py @@ -5,7 +5,7 @@ import warnings from django import template from django.utils.safestring import mark_safe -from wagtail.utils.deprecation import RemovedInWagtail18Warning +from wagtail.utils.deprecation import RemovedInWagtail19Warning from wagtail.wagtailembeds import embeds from wagtail.wagtailembeds.exceptions import EmbedException @@ -17,7 +17,7 @@ def embed(url, max_width=None): warnings.warn( "The embed filter has been converted to a template tag. " "Use {% embed my_embed_url %} instead.", - category=RemovedInWagtail18Warning, stacklevel=2 + category=RemovedInWagtail19Warning, stacklevel=2 ) return embed_tag(url, max_width)