mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
NotImplemented -> NotImplementedError
This commit is contained in:
parent
6065cdbd93
commit
3cc39ffbce
|
@ -132,13 +132,13 @@ class BasePagination(object):
|
|||
display_page_controls = False
|
||||
|
||||
def paginate_queryset(self, queryset, request, view=None): # pragma: no cover
|
||||
raise NotImplemented('paginate_queryset() must be implemented.')
|
||||
raise NotImplementedError('paginate_queryset() must be implemented.')
|
||||
|
||||
def get_paginated_response(self, data): # pragma: no cover
|
||||
raise NotImplemented('get_paginated_response() must be implemented.')
|
||||
raise NotImplementedError('get_paginated_response() must be implemented.')
|
||||
|
||||
def to_html(self): # pragma: no cover
|
||||
raise NotImplemented('to_html() must be implemented to display page controls.')
|
||||
raise NotImplementedError('to_html() must be implemented to display page controls.')
|
||||
|
||||
|
||||
class PageNumberPagination(BasePagination):
|
||||
|
|
|
@ -17,7 +17,7 @@ class BaseVersioning(object):
|
|||
|
||||
def determine_version(self, request, *args, **kwargs):
|
||||
msg = '{cls}.determine_version() must be implemented.'
|
||||
raise NotImplemented(msg.format(
|
||||
raise NotImplementedError(msg.format(
|
||||
cls=self.__class__.__name__
|
||||
))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user