Add default pagination settings for rest framework.
parent
ab3e2b5336
commit
81fcc4351a
|
@ -294,6 +294,8 @@ REST_FRAMEWORK = {
|
||||||
'greenmine.base.users.auth.SessionAuthentication',
|
'greenmine.base.users.auth.SessionAuthentication',
|
||||||
),
|
),
|
||||||
'FILTER_BACKEND': 'greenmine.base.filters.FilterBackend',
|
'FILTER_BACKEND': 'greenmine.base.filters.FilterBackend',
|
||||||
|
'PAGINATE_BY': 50,
|
||||||
|
'MAX_PAGINATE_BY': 1000,
|
||||||
}
|
}
|
||||||
|
|
||||||
from .appdefaults import *
|
from .appdefaults import *
|
||||||
|
|
Loading…
Reference in New Issue