From f8a1627ff757afd3c77d9214d6cec16213a69fa7 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Tue, 20 Oct 2015 14:37:57 +0100 Subject: [PATCH] Fix typo / PEP8 --- wagtail/contrib/wagtailapi/endpoints.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wagtail/contrib/wagtailapi/endpoints.py b/wagtail/contrib/wagtailapi/endpoints.py index 5050c47b0..f140aad6c 100644 --- a/wagtail/contrib/wagtailapi/endpoints.py +++ b/wagtail/contrib/wagtailapi/endpoints.py @@ -30,7 +30,7 @@ class BaseAPIEndpoint(GenericViewSet): renderer_classes = [JSONRenderer] # The BrowsableAPIRenderer requires rest_framework to be installed - # Remove this check in Wagtail 1.4 as rest_framwork will be required + # Remove this check in Wagtail 1.4 as rest_framework will be required # RemovedInWagtail14Warning if apps.is_installed('rest_framework'): renderer_classes.append(BrowsableAPIRenderer) @@ -38,7 +38,7 @@ class BaseAPIEndpoint(GenericViewSet): pagination_class = WagtailPagination base_serializer_class = BaseSerializer filter_backends = [] - model = None # Set on subclass + model = None # Set on subclass known_query_parameters = frozenset([ 'limit', @@ -116,7 +116,7 @@ class BaseAPIEndpoint(GenericViewSet): # Get all available fields all_fields = self.get_api_fields(model) - all_fields = list(OrderedDict.fromkeys(all_fields)) # Removes any duplicates in case the developer put "title" in api_fields + all_fields = list(OrderedDict.fromkeys(all_fields)) # Removes any duplicates in case the developer put "title" in api_fields if self.action == 'listing_view': # Listing views just show the title field and any other allowed field the user specified