Fakultas Ilmu Komputer UI

Commit 098fcd7d authored by Jonathan Christopher Jakub's avatar Jonathan Christopher Jakub
Browse files

Merge branch 'bugfix/logs-pagination' into 'staging'

Fix Logs Pagination

See merge request !37
parents 2e422a7b 558f0264
Pipeline #41649 passed with stages
in 5 minutes and 25 seconds
......@@ -53,8 +53,7 @@ class LogAPIView(ListAPIView):
paginator = PageNumberPagination()
context = paginator.paginate_queryset(logs_querysets, request)
serializer = LogSerializer(data=logs_querysets, many=True, context=context)
serializer.is_valid()
serializer = LogSerializer(context, many=True)
serializer_data = serializer.data
return paginator.get_paginated_response(serializer_data)
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