Skip to content

Commit

Permalink
fixup! Fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed Jan 21, 2022
1 parent 7b3d91e commit 067acab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wagtail_localize/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,12 @@ def _is_shown(self, context):

if WAGTAIL_VERSION >= (2, 15):

def is_shown(self, request, context):
def is_shown(self, context):
return self._is_shown(context)

else:

def is_shown(self, context):
def is_shown(self, request, context):
return self._is_shown(context)

@hooks.register("register_snippet_action_menu_item")
Expand Down

0 comments on commit 067acab

Please sign in to comment.