mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 03:31:04 +01:00
Merge branch 'remove-embedly-filter' of https://github.com/kaedroho/wagtail into kaedroho-remove-embedly-filter
Conflicts: wagtail/wagtailembeds/tests.py
This commit is contained in:
commit
ec47e00e21
@ -5,4 +5,4 @@ warnings.warn(
|
||||
"Use {% load wagtailembeds_tags %} instead.", DeprecationWarning)
|
||||
|
||||
|
||||
from wagtail.wagtailembeds.templatetags.wagtailembeds_tags import register, embed, embedly
|
||||
from wagtail.wagtailembeds.templatetags.wagtailembeds_tags import register, embed
|
||||
|
@ -19,12 +19,3 @@ def embed(url, max_width=None):
|
||||
return ''
|
||||
except:
|
||||
return ''
|
||||
|
||||
|
||||
@register.filter
|
||||
def embedly(url, max_width=None):
|
||||
warnings.warn(
|
||||
"The 'embedly' filter has been renamed. "
|
||||
"Use 'embed' instead.", DeprecationWarning)
|
||||
|
||||
return embed(url, max_width)
|
||||
|
@ -22,7 +22,7 @@ from wagtail.wagtailembeds.embeds import (
|
||||
AccessDeniedEmbedlyException,
|
||||
)
|
||||
from wagtail.wagtailembeds.embeds import embedly as wagtail_embedly, oembed as wagtail_oembed
|
||||
from wagtail.wagtailembeds.templatetags.wagtailembeds_tags import embed as embed_filter, embedly as embedly_filter
|
||||
from wagtail.wagtailembeds.templatetags.wagtailembeds_tags import embed as embed_filter
|
||||
|
||||
|
||||
class TestEmbeds(TestCase):
|
||||
|
Loading…
Reference in New Issue
Block a user