diff options
| author | Tom Christie | 2015-01-22 10:28:19 +0000 | 
|---|---|---|
| committer | Tom Christie | 2015-01-22 10:28:19 +0000 | 
| commit | cae9528c54ea13863ea056d40168e8d8df68b276 (patch) | |
| tree | 4b90afda5c4d39697b519b41766505f83b08f10b /tests/test_pagination.py | |
| parent | 5e52f0fd8c3b4dbe70f1332d1323e3a544951e66 (diff) | |
| download | django-rest-framework-cae9528c54ea13863ea056d40168e8d8df68b276.tar.bz2 | |
Add support for reverse cursors
Diffstat (limited to 'tests/test_pagination.py')
| -rw-r--r-- | tests/test_pagination.py | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/tests/test_pagination.py b/tests/test_pagination.py index f04079a7..47019671 100644 --- a/tests/test_pagination.py +++ b/tests/test_pagination.py @@ -442,6 +442,9 @@ class TestCursorPagination:                      if item.created > int(created__gt)                  ] +            def order_by(self, ordering): +                return self +              def __getitem__(self, sliced):                  return self.items[sliced] @@ -503,6 +506,9 @@ class TestCrazyCursorPagination:                      if item.created > int(created__gt)                  ] +            def order_by(self, ordering): +                return self +              def __getitem__(self, sliced):                  return self.items[sliced] | 
