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
PPL Sosial
tbcare
tbcare-backend
Commits
2600382e
Commit
2600382e
authored
Jun 05, 2021
by
Inigo Ramli
Browse files
Change log pagination to 20
parent
34a7d37a
Pipeline
#81440
passed with stages
in 2 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/logs/views.py
View file @
2600382e
...
...
@@ -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
)
...
...
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