Skip to content

Commit

Permalink
Fix a spelling error in openapi AutoSchema method (#7004)
Browse files Browse the repository at this point in the history
Replace "pagninator" by "paginator".
  • Loading branch information
jlaine authored and carltongibson committed Oct 24, 2019
1 parent 4d57cd3 commit c9f06bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rest_framework/schemas/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def _get_pagination_parameters(self, path, method):
if not is_list_view(path, method, view):
return []

paginator = self._get_pagninator()
paginator = self._get_paginator()
if not paginator:
return []

Expand Down Expand Up @@ -429,7 +429,7 @@ def _map_field_validators(self, field, schema):
schema['maximum'] = int(digits * '9') + 1
schema['minimum'] = -schema['maximum']

def _get_pagninator(self):
def _get_paginator(self):
pagination_class = getattr(self.view, 'pagination_class', None)
if pagination_class:
return pagination_class()
Expand Down Expand Up @@ -502,7 +502,7 @@ def _get_responses(self, path, method):
'type': 'array',
'items': item_schema,
}
paginator = self._get_pagninator()
paginator = self._get_paginator()
if paginator:
response_schema = paginator.get_paginated_response_schema(response_schema)
else:
Expand Down

0 comments on commit c9f06bf

Please sign in to comment.