Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2020
PPL-C
PPTI-Mobile Apps Monitoring Wabah Tuberkolosis
Neza-Backend
Commits
558f0264
Commit
558f0264
authored
Apr 20, 2020
by
Jonathan Christopher Jakub
Browse files
Fix Logs Pagination
parent
2e422a7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/logs/views.py
View file @
558f0264
...
...
@@ -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
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment