File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -9,18 +9,13 @@ The easiest way to make use of those features is to import ModelSerializer varia
99from ` rest_framework_json_api ` instead of the usual ` rest_framework `
1010
1111### Configuration
12- We suggest that you simply copy the settings block below and modify it if necessary.
12+ We suggest that you copy the settings block below and modify it if necessary.
1313``` python
1414REST_FRAMEWORK = {
1515 ' PAGE_SIZE' : 10 ,
16- ' PAGINATE_BY_PARAM' : ' page_size' ,
17- ' MAX_PAGINATE_BY' : 100 ,
18- # DRF v3.1+
16+ ' EXCEPTION_HANDLER' : ' rest_framework_json_api.exceptions.exception_handler' ,
1917 ' DEFAULT_PAGINATION_CLASS' :
2018 ' rest_framework_json_api.pagination.PageNumberPagination' ,
21- # older than DRF v3.1
22- ' DEFAULT_PAGINATION_SERIALIZER_CLASS' :
23- ' rest_framework_json_api.pagination.PaginationSerializer' ,
2419 ' DEFAULT_PARSER_CLASSES' : (
2520 ' rest_framework_json_api.parsers.JSONParser' ,
2621 ' rest_framework.parsers.FormParser' ,
@@ -30,6 +25,7 @@ REST_FRAMEWORK = {
3025 ' rest_framework_json_api.renderers.JSONRenderer' ,
3126 ' rest_framework.renderers.BrowsableAPIRenderer' ,
3227 ),
28+ ' DEFAULT_METADATA_CLASS' : ' rest_framework_json_api.metadata.JSONAPIMetadata' ,
3329}
3430```
3531
You can’t perform that action at this time.
0 commit comments