Fakultas Ilmu Komputer UI

Commit 2600382e authored by Inigo Ramli's avatar Inigo Ramli
Browse files

Change log pagination to 20

parent 34a7d37a
Pipeline #81440 passed with stages
in 2 minutes and 45 seconds
......@@ -46,6 +46,7 @@ class LogAPIView(ListAPIView):
logs_querysets = sorted(logs_querysets, key=lambda x: x.recorded_at, reverse=True)
paginator = PageNumberPagination()
paginator.page_size = 20
context = paginator.paginate_queryset(logs_querysets, request)
serializer = LogSerializer(context, many=True)
......
Supports Markdown
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