Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
3cc39ffb
Commit
3cc39ffb
authored
Jan 19, 2015
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NotImplemented -> NotImplementedError
parent
6065cdbd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
rest_framework/pagination.py
+3
-3
rest_framework/versioning.py
+1
-1
No files found.
rest_framework/pagination.py
View file @
3cc39ffb
...
@@ -132,13 +132,13 @@ class BasePagination(object):
...
@@ -132,13 +132,13 @@ class BasePagination(object):
display_page_controls
=
False
display_page_controls
=
False
def
paginate_queryset
(
self
,
queryset
,
request
,
view
=
None
):
# pragma: no cover
def
paginate_queryset
(
self
,
queryset
,
request
,
view
=
None
):
# pragma: no cover
raise
NotImplemented
(
'paginate_queryset() must be implemented.'
)
raise
NotImplemented
Error
(
'paginate_queryset() must be implemented.'
)
def
get_paginated_response
(
self
,
data
):
# pragma: no cover
def
get_paginated_response
(
self
,
data
):
# pragma: no cover
raise
NotImplemented
(
'get_paginated_response() must be implemented.'
)
raise
NotImplemented
Error
(
'get_paginated_response() must be implemented.'
)
def
to_html
(
self
):
# pragma: no cover
def
to_html
(
self
):
# pragma: no cover
raise
NotImplemented
(
'to_html() must be implemented to display page controls.'
)
raise
NotImplemented
Error
(
'to_html() must be implemented to display page controls.'
)
class
PageNumberPagination
(
BasePagination
):
class
PageNumberPagination
(
BasePagination
):
...
...
rest_framework/versioning.py
View file @
3cc39ffb
...
@@ -17,7 +17,7 @@ class BaseVersioning(object):
...
@@ -17,7 +17,7 @@ class BaseVersioning(object):
def
determine_version
(
self
,
request
,
*
args
,
**
kwargs
):
def
determine_version
(
self
,
request
,
*
args
,
**
kwargs
):
msg
=
'{cls}.determine_version() must be implemented.'
msg
=
'{cls}.determine_version() must be implemented.'
raise
NotImplemented
(
msg
.
format
(
raise
NotImplemented
Error
(
msg
.
format
(
cls
=
self
.
__class__
.
__name__
cls
=
self
.
__class__
.
__name__
))
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment