diff options
| author | Tom Christie | 2015-03-04 15:51:00 +0000 |
|---|---|---|
| committer | Tom Christie | 2015-03-04 15:51:00 +0000 |
| commit | 18cc0230bff436da2f26b2b25034cece32c9f5d0 (patch) | |
| tree | f5648574b0d80b8d4b236d05110c59cc5d54eda6 /tests | |
| parent | 5aa204e94f3173e8bc20439033a5d613625b1311 (diff) | |
| download | django-rest-framework-18cc0230bff436da2f26b2b25034cece32c9f5d0.tar.bz2 | |
Clean up pagination attributes
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_pagination.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_pagination.py b/tests/test_pagination.py index 13bfb627..6b39a6f2 100644 --- a/tests/test_pagination.py +++ b/tests/test_pagination.py @@ -24,9 +24,9 @@ class TestPaginationIntegration: return [item for item in queryset if item % 2 == 0] class BasicPagination(pagination.PageNumberPagination): - paginate_by = 5 - paginate_by_param = 'page_size' - max_paginate_by = 20 + page_size = 5 + page_size_query_param = 'page_size' + max_page_size = 20 self.view = generics.ListAPIView.as_view( serializer_class=PassThroughSerializer, @@ -185,7 +185,7 @@ class TestPageNumberPagination: def setup(self): class ExamplePagination(pagination.PageNumberPagination): - paginate_by = 5 + page_size = 5 self.pagination = ExamplePagination() self.queryset = range(1, 101) |
