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): ...@@ -373,14 +373,14 @@ def make_minimal_cs_comment(overrides=None):
return ret 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 Generates the response dictionary of paginated APIs with passed data
""" """
return { return {
"pagination": { "pagination": {
"next": next, "next": next_link,
"previous": previous, "previous": previous_link,
"count": count, "count": count,
"num_pages": num_pages, "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