[MA-1862] changing next to next_link, next is builtin

This commit is contained in:
Ehtesham
2016-01-12 05:01:58 +05:00
parent 8c94fdcf90
commit 1297f0af45

View File

@@ -373,14 +373,14 @@ def make_minimal_cs_comment(overrides=None):
return ret
def make_paginated_api_response(results, count, num_pages, next, previous):
def make_paginated_api_response(results, count, num_pages, next_link, previous_link):
"""
Generates the response dictionary of paginated APIs with passed data
"""
return {
"pagination": {
"next": next,
"previous": previous,
"next": next_link,
"previous": previous_link,
"count": count,
"num_pages": num_pages,
},