mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-17 03:31:11 +00:00
Bumped version of deprecation warning
See previous commit
This commit is contained in:
parent
361991a21b
commit
34331023d7
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue