Update pagination.md

Fixed 2 missing spaces in Custom Pagination snippet
This commit is contained in:
Paolo Melchiorre 2017-07-17 12:02:30 +02:00 committed by Carlton Gibson
parent 60b9e58a12
commit 11e5851196

View File

@ -226,8 +226,8 @@ Suppose we want to replace the default pagination output style with a modified f
def get_paginated_response(self, data): def get_paginated_response(self, data):
return Response({ return Response({
'links': { 'links': {
'next': self.get_next_link(), 'next': self.get_next_link(),
'previous': self.get_previous_link() 'previous': self.get_previous_link()
}, },
'count': self.page.paginator.count, 'count': self.page.paginator.count,
'results': data 'results': data