aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTom Christie2015-01-22 15:07:01 +0000
committerTom Christie2015-01-22 15:07:01 +0000
commit83a82b44a56a303d43a16dd675fae116e51b9d85 (patch)
treecd09e725512226687705425b958cc0539009723e /tests
parent38a2ed6f62adcdcb2eba94f6133d4dd976a53af1 (diff)
downloaddjango-rest-framework-83a82b44a56a303d43a16dd675fae116e51b9d85.tar.bz2
Support for tuple ordering in cursor pagination
Diffstat (limited to 'tests')
-rw-r--r--tests/test_pagination.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_pagination.py b/tests/test_pagination.py
index e32dd028..fffdcbe9 100644
--- a/tests/test_pagination.py
+++ b/tests/test_pagination.py
@@ -450,7 +450,7 @@ class TestCursorPagination:
])
def order_by(self, ordering):
- if ordering.startswith('-'):
+ if ordering[0].startswith('-'):
return MockQuerySet(list(reversed(self.items)))
return self