aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
diff options
context:
space:
mode:
authorTom Christie2015-01-22 10:51:04 +0000
committerTom Christie2015-01-22 10:51:04 +0000
commitf1af603fb05fce236a4258e18df8af8888043247 (patch)
tree2aae389b16fbfdcfbd68f06cf788cf6bbf4f5ad6 /rest_framework
parentcae9528c54ea13863ea056d40168e8d8df68b276 (diff)
downloaddjango-rest-framework-f1af603fb05fce236a4258e18df8af8888043247.tar.bz2
Tests for reverse pagination
Diffstat (limited to 'rest_framework')
-rw-r--r--rest_framework/pagination.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rest_framework/pagination.py b/rest_framework/pagination.py
index 9e22a8bf..d5af2ac8 100644
--- a/rest_framework/pagination.py
+++ b/rest_framework/pagination.py
@@ -408,6 +408,8 @@ def encode_cursor(cursor):
class CursorPagination(BasePagination):
# TODO: handle queries with '' as a legitimate position
+ # Support case where ordering is already negative
+ # Support tuple orderings
cursor_query_param = 'cursor'
page_size = 5