Commit 11e58511 by Paolo Melchiorre Committed by Carlton Gibson

Update pagination.md

Fixed 2 missing spaces in Custom Pagination snippet
parent 60b9e58a
......@@ -226,8 +226,8 @@ Suppose we want to replace the default pagination output style with a modified f
def get_paginated_response(self, data):
return Response({
'links': {
'next': self.get_next_link(),
'previous': self.get_previous_link()
'next': self.get_next_link(),
'previous': self.get_previous_link()
},
'count': self.page.paginator.count,
'results': data
......
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