diff --git a/wagtailsvg/wagtail_hooks.py b/wagtailsvg/wagtail_hooks.py index ee2fe3b..199edbd 100644 --- a/wagtailsvg/wagtail_hooks.py +++ b/wagtailsvg/wagtail_hooks.py @@ -1,7 +1,13 @@ -from wagtail.contrib.modeladmin.options import ( - ModelAdmin, - modeladmin_register -) +try: + from wagtail.contrib.modeladmin.options import ( + ModelAdmin, + modeladmin_register + ) +except ImportError: + from wagtail_modeladmin.options import ( + ModelAdmin, + modeladmin_register + ) try: from wagtail import hooks