mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Bumped version of deprecation warning
See previous commit
This commit is contained in:
parent
361991a21b
commit
34331023d7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user