parent
2683d6a798
commit
baac8b2c41
|
@ -65,6 +65,8 @@ class CustomPagination(PageNumberPagination):
|
|||
"page": int(self.get_page_number(self.request, paginator)) or 1,
|
||||
"total": self.page.paginator.count if self.page else 0,
|
||||
"limit": int(self.get_page_size(self.request)) or 10,
|
||||
"is_next": self.page.has_next(),
|
||||
"is_previous": self.page.has_previous(),
|
||||
"data": data
|
||||
}
|
||||
if not data:
|
||||
|
|
Loading…
Reference in New Issue