aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_pagination.py
diff options
context:
space:
mode:
authorTom Christie2015-01-22 15:15:52 +0000
committerTom Christie2015-01-22 15:15:52 +0000
commit408261ee02b176732b7f840f7042e7c24f3ecd27 (patch)
tree0cc6b2a8d29b258b0f243bbd824902d7297f552f /tests/test_pagination.py
parent83a82b44a56a303d43a16dd675fae116e51b9d85 (diff)
downloaddjango-rest-framework-408261ee02b176732b7f840f7042e7c24f3ecd27.tar.bz2
Support ordering attribute either on view or on pagination class for CursorPagination
Diffstat (limited to 'tests/test_pagination.py')
-rw-r--r--tests/test_pagination.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_pagination.py b/tests/test_pagination.py
index fffdcbe9..c05b4aba 100644
--- a/tests/test_pagination.py
+++ b/tests/test_pagination.py
@@ -459,6 +459,7 @@ class TestCursorPagination:
class ExamplePagination(pagination.CursorPagination):
page_size = 5
+ ordering = 'created'
self.pagination = ExamplePagination()
self.queryset = MockQuerySet([