Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
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
051df134
Commit
051df134
authored
Apr 20, 2020
by
Jonathan Christopher Jakub
Browse files
[REFACTOR] Fix paginated logs queryset is not sliced by page_size
parent
2e422a7b
Pipeline
#41632
passed with stages
in 4 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/logs/views.py
View file @
051df134
...
...
@@ -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
.
Attach a 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