-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(dep): Mise a jour de DRF de 3.3.1 a 3.3.2.
Mise a jour de dependances connexes : - drf-extensions de 0.2.7 a 0.2.8. - django-cors-middleware de 1.0.0 a 1.2.0. - Suppression de get_cache() - Changement de noms de parametres de configuration pour REST_FRAMEWORK Merci particulier a @DevHugo pour sa contribution.
- Loading branch information
1 parent
821e366
commit addf026
Showing
9 changed files
with
110 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# coding: utf-8 | ||
|
||
|
||
from rest_framework.pagination import PageNumberPagination | ||
|
||
REST_PAGE_SIZE = 10 | ||
REST_PAGE_SIZE_QUERY_PARAM = 'page_size' | ||
REST_MAX_PAGE_SIZE = 100 | ||
|
||
|
||
class DefaultPagination(PageNumberPagination): | ||
page_size = REST_PAGE_SIZE | ||
page_size_query_param = REST_PAGE_SIZE_QUERY_PARAM | ||
max_page_size = REST_MAX_PAGE_SIZE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.