Показ пройденных готов
This commit is contained in:
1 parent
195ad0b43d
commit
e3bb936338
4 files changed
+23
-1
No files matched your search
@@ -18,6 +18,17 @@ class AllTestsPagination(LimitOffsetPagination):
|
||||
|
||||
|
||||
class AppointmentUserPagination(LimitOffsetPagination):
|
||||
default_limit = 1
|
||||
max_limit = 3
|
||||
def get_paginated_response(self, data):
|
||||
return Response({
|
||||
'total_count': self.count,
|
||||
'limit': self.limit,
|
||||
'offset': self.offset,
|
||||
'results': data,
|
||||
})
|
||||
|
||||
class AccomplishedPagination(LimitOffsetPagination):
|
||||
default_limit = 1
|
||||
max_limit = 3
|
||||
def get_paginated_response(self, data):
|
||||
|
||||
Reference in new issue
Block a user