Add functions for checking size of paginated results

This commit is contained in:
Michael DeHaan
2013-03-20 22:47:51 -04:00
parent 3bc3b1f767
commit 7722e414e2
3 changed files with 35 additions and 17 deletions

View File

@@ -24,7 +24,11 @@ MANAGERS = ADMINS
REST_FRAMEWORK = {
'PAGINATE_BY': 10,
'PAGINATE_BY_PARAM': 'page_size'
'PAGINATE_BY_PARAM': 'page_size',
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.BasicAuthentication',
'rest_framework.authentication.SessionAuthentication',
)
}
DATABASES = {