Commit 5e082314 by Xavier Ordoquy

Remove informations about why the pagination didn't work.

We remove a couple of informations to lower the exposition of our internals.
parent 2fc44402
...@@ -186,7 +186,7 @@ class PageNumberPagination(BasePagination): ...@@ -186,7 +186,7 @@ class PageNumberPagination(BasePagination):
template = 'rest_framework/pagination/numbers.html' template = 'rest_framework/pagination/numbers.html'
invalid_page_message = _('Invalid page "{page_number}": {message}.') invalid_page_message = _('Invalid page.')
def paginate_queryset(self, queryset, request, view=None): def paginate_queryset(self, queryset, request, view=None):
""" """
......
...@@ -113,7 +113,7 @@ class TestPaginationIntegration: ...@@ -113,7 +113,7 @@ class TestPaginationIntegration:
response = self.view(request) response = self.view(request)
assert response.status_code == status.HTTP_404_NOT_FOUND assert response.status_code == status.HTTP_404_NOT_FOUND
assert response.data == { assert response.data == {
'detail': 'Invalid page "0": That page number is less than 1.' 'detail': 'Invalid page.'
} }
def test_404_not_found_for_invalid_page(self): def test_404_not_found_for_invalid_page(self):
...@@ -121,7 +121,7 @@ class TestPaginationIntegration: ...@@ -121,7 +121,7 @@ class TestPaginationIntegration:
response = self.view(request) response = self.view(request)
assert response.status_code == status.HTTP_404_NOT_FOUND assert response.status_code == status.HTTP_404_NOT_FOUND
assert response.data == { assert response.data == {
'detail': 'Invalid page "invalid": That page number is not an integer.' 'detail': 'Invalid page.'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment