Commit 1297f0af by Ehtesham

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

parent 8c94fdcf
......@@ -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,
},
......
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