Replace function based view with class based view and upgrade wagtail to
LTS
This commit is contained in:
parent
e30d6f468e
commit
e66fd61ec9
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue