Replace function based view with class based view and upgrade wagtail to

LTS
This commit is contained in:
Ramon Wenger 2023-12-11 10:37:07 +01:00
parent e30d6f468e
commit e66fd61ec9
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ from django.shortcuts import render
from django.views.decorators.csrf import ensure_csrf_cookie
from graphene_django.views import GraphQLView
from sentry_sdk.api import start_transaction
from wagtail.admin.views.pages.listing import index as wagtailadmin_explore
from wagtail.admin.views.pages.listing import IndexView
# For sentry perfomance monitoring
@ -64,4 +64,4 @@ def override_wagtailadmin_explore_default_ordering(request, parent_page_id):
# Display reordering handles by default for children of all Page types.
return HttpResponseRedirect(request.path_info + "?ordering=ord")
return wagtailadmin_explore(request, parent_page_id=parent_page_id)
return IndexView.as_view(request=request, parent_page_id=parent_page_id)