Skip to content

Commit

Permalink
Remove "handler" arg from register_embed_type in Wagtail >= 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
juan0tron committed Feb 29, 2020
1 parent 2cb05ec commit fdba976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtailmedia/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def register_custom_media_feature(features):
if WAGTAIL_VERSION < (2, 5):
features.register_embed_type(embed_type='media', handler=MediaEmbedHandler)
else:
features.register_embed_type(handler=MediaEmbedHandler)
features.register_embed_type(MediaEmbedHandler)

feature_name = 'wagtailmedia'

Expand Down

0 comments on commit fdba976

Please sign in to comment.