Skip to content

Commit

Permalink
Merge pull request #43 from suxilog/fix_keyerror_2.15
Browse files Browse the repository at this point in the history
Update views.py
  • Loading branch information
KalobTaulien authored Mar 31, 2022
2 parents 59d7132 + 07ecba8 commit 2378d10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wagtail_ab_testing/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ def __init__(self, request, **kwargs):
self.request = request
self.context = kwargs
self.context['user_page_permissions'] = UserPagePermissionsProxy(self.request.user)

# The ActionMenuItem request object is available in the context dictionary as context['request'].
# https://docs.wagtail.io/en/stable/releases/2.15.html#admin-homepage-panels-summary-items-and-action-menu-items-now-use-components
self.context['request'] = request
self.menu_items = [
StartAbTestMenuItem(order=0),
RestartAbTestMenuItem(order=1),
Expand Down

0 comments on commit 2378d10

Please sign in to comment.