Skip to content

Commit

Permalink
Make API pagination configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinh Trung Dung committed Sep 18, 2020
1 parent 11f5c3b commit d9db2fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

REST_FRAMEWORK = {
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
'PAGE_SIZE': 25
'PAGE_SIZE': int(env("LIST_PER_PAGE"))
}

LIST_PER_PAGE = int(env("LIST_PER_PAGE"))
Expand Down

0 comments on commit d9db2fb

Please sign in to comment.