Add default pagination class
This commit is contained in:
parent
9bfc73d726
commit
5a7ee11e01
@ -124,3 +124,14 @@ DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|
|||||||
# Custom User Model
|
# Custom User Model
|
||||||
|
|
||||||
AUTH_USER_MODEL = "user.User"
|
AUTH_USER_MODEL = "user.User"
|
||||||
|
|
||||||
|
|
||||||
|
# Rest framework settings
|
||||||
|
|
||||||
|
REST_FRAMEWORK = {
|
||||||
|
"DEFAULT_AUTHENTICATION_CLASSES": [
|
||||||
|
"rest_framework.authentication.SessionAuthentication",
|
||||||
|
],
|
||||||
|
"DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.PageNumberPagination",
|
||||||
|
"PAGE_SIZE": 20,
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user