@@ -5,7 +5,7 @@
Loading
5 5
from rest_framework.renderers import JSONRenderer
6 6
from rest_framework.response import Response
7 7
from rest_framework.views import APIView
8 -
from wagtail.admin.api.endpoints import PagesAdminAPIEndpoint
8 +
from wagtail.admin.api.views import PagesAdminAPIViewSet
9 9
from wagtail.core.models import Orderable, Page, Site
10 10
11 11
from django.conf import settings
@@ -27,7 +27,7 @@
Loading
27 27
logger = getLogger(__name__)
28 28
29 29
30 -
class APIEndpointBase(PagesAdminAPIEndpoint):
30 +
class APIEndpointBase(PagesAdminAPIViewSet):
31 31
    """At the very deep core this is a DRF GenericViewSet, with a few wagtail
32 32
    layers on top.
33 33
@@ -37,7 +37,7 @@
Loading
37 37
    queryset = Page.objects.all()
38 38
    meta_fields = []
39 39
    known_query_parameters = (
40 -
        PagesAdminAPIEndpoint.known_query_parameters.union(
40 +
        PagesAdminAPIViewSet.known_query_parameters.union(
41 41
            ['lang', 'draft_token', 'service_name']
42 42
        )
43 43
    )
Files Coverage
activitystream 97.00%
components 100.00%
conf 93.33%
core 94.29%
export_readiness 99.65%
great_international 99.81%
groups 100.00%
users 96.34%
Project Totals (81 files) 98.23%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading