Commit 163618b9 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

add default pagination for list in API

parent ddb2bfe5
......@@ -12,6 +12,7 @@ class TestGenes(TestCase):
def test_get_genes_no_auth(self):
"""
Unauthenticated users should be able to access genes
@TODO make unaccessible
"""
url = reverse('genes')
resp = self.client.get(url)
......
......@@ -104,6 +104,8 @@ REST_FRAMEWORK = {
'rest_framework.authentication.SessionAuthentication',
# 'rest_framework.authentication.BasicAuthentication',
),
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
'PAGE_SIZE': 100
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment