Skip to content

Commit

Permalink
Update import for getting the snippet panel
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed Jun 29, 2022
1 parent 39a7ed6 commit ebde7a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wagtail_localize/views/edit_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@


if WAGTAIL_VERSION >= (4, 0):
from wagtail.snippets.views.snippets import (
get_snippet_panel as get_snippet_edit_handler,
)
from wagtail.admin.panels import get_edit_handler as get_snippet_edit_handler
else:
from wagtail.snippets.views.snippets import get_snippet_edit_handler

Expand Down

0 comments on commit ebde7a3

Please sign in to comment.