diff options
| author | Tom Christie | 2015-01-22 15:15:52 +0000 | 
|---|---|---|
| committer | Tom Christie | 2015-01-22 15:15:52 +0000 | 
| commit | 408261ee02b176732b7f840f7042e7c24f3ecd27 (patch) | |
| tree | 0cc6b2a8d29b258b0f243bbd824902d7297f552f /tests | |
| parent | 83a82b44a56a303d43a16dd675fae116e51b9d85 (diff) | |
| download | django-rest-framework-408261ee02b176732b7f840f7042e7c24f3ecd27.tar.bz2 | |
Support ordering attribute either on view or on pagination class for CursorPagination
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_pagination.py | 1 | 
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([ | 
