Skip to content

Commit 08f7864

Browse files
Stormheglaymonage
authored andcommitted
Fix RemovedInWagtail80 deprecation warning
> RemovedInWagtail80Warning: `construct_wagtail_userbar` hook functions should accept a `page` argument in third position - bakerydemo.base.wagtail_hooks.replace_userbar_accessibility_item needs to be updated
1 parent 1e87fb3 commit 08f7864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bakerydemo/base/wagtail_hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class CustomAccessibilityItem(AccessibilityItem):
3737

3838

3939
@hooks.register("construct_wagtail_userbar")
40-
def replace_userbar_accessibility_item(request, items):
40+
def replace_userbar_accessibility_item(request, items, page):
4141
items[:] = [
4242
CustomAccessibilityItem() if isinstance(item, AccessibilityItem) else item
4343
for item in items

0 commit comments

Comments
 (0)