Skip to content

Commit

Permalink
changes to 'construct_wagtail_userbar' according to 6.4rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel2392 committed Jan 21, 2025
1 parent 65985ac commit 1496209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wagtail_fedit/wagtail_hooks/userbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ def fedit_admin_js():
))

@hooks.register("construct_wagtail_userbar")
def add_fedit_userbar_item(request, items):
def add_fedit_userbar_item(request, items, page):
model = access_userbar_model(request)

if not model:
model = retrieve_page_model(items)
model = page

local_items = []

Expand Down

0 comments on commit 1496209

Please sign in to comment.