Fakultas Ilmu Komputer UI

Commit 558f0264 authored by Jonathan Christopher Jakub's avatar Jonathan Christopher Jakub
Browse files

Fix Logs Pagination

parent 2e422a7b
......@@ -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