diff options
| author | Tom Christie | 2015-01-22 15:07:01 +0000 | 
|---|---|---|
| committer | Tom Christie | 2015-01-22 15:07:01 +0000 | 
| commit | 83a82b44a56a303d43a16dd675fae116e51b9d85 (patch) | |
| tree | cd09e725512226687705425b958cc0539009723e /tests | |
| parent | 38a2ed6f62adcdcb2eba94f6133d4dd976a53af1 (diff) | |
| download | django-rest-framework-83a82b44a56a303d43a16dd675fae116e51b9d85.tar.bz2 | |
Support for tuple ordering in cursor pagination
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_pagination.py | 2 | 
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 | 
