mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-16 10:26:16 +00:00
added and modifid pagination
This commit is contained in:
@ -39,8 +39,8 @@ class CustomPageNumberPagination(PageNumberPagination):
|
||||
:return: return a simple dict obj
|
||||
"""
|
||||
return {
|
||||
'current': self.page.number,
|
||||
'count': self.page.paginator.count,
|
||||
'data': data,
|
||||
'total': self.page.paginator.count,
|
||||
'current_page': self.page.number,
|
||||
'total_pages': self.page.paginator.num_pages,
|
||||
}
|
||||
|
Reference in New Issue
Block a user