From ba1ab676ee53e84665214101082683fac02a93c3 Mon Sep 17 00:00:00 2001 From: Christopher Charbonneau Wells Date: Sat, 21 Oct 2017 17:36:44 -0400 Subject: [PATCH] Add simple default pagination to API endpoints. --- babyblotter/settings/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/babyblotter/settings/base.py b/babyblotter/settings/base.py index 65bbba31..a0eafb05 100644 --- a/babyblotter/settings/base.py +++ b/babyblotter/settings/base.py @@ -118,5 +118,8 @@ REST_FRAMEWORK = { ], 'DEFAULT_RENDERER_CLASSES': ( 'rest_framework.renderers.JSONRenderer', - ) + ), + 'DEFAULT_PAGINATION_CLASS': + 'rest_framework.pagination.LimitOffsetPagination', + 'PAGE_SIZE': 100 }