File tree 1 file changed +3
-7
lines changed
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
9
9
from ` rest_framework_json_api ` instead of the usual ` rest_framework `
10
10
11
11
### 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.
13
13
``` python
14
14
REST_FRAMEWORK = {
15
15
' 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' ,
19
17
' DEFAULT_PAGINATION_CLASS' :
20
18
' rest_framework_json_api.pagination.PageNumberPagination' ,
21
- # older than DRF v3.1
22
- ' DEFAULT_PAGINATION_SERIALIZER_CLASS' :
23
- ' rest_framework_json_api.pagination.PaginationSerializer' ,
24
19
' DEFAULT_PARSER_CLASSES' : (
25
20
' rest_framework_json_api.parsers.JSONParser' ,
26
21
' rest_framework.parsers.FormParser' ,
@@ -30,6 +25,7 @@ REST_FRAMEWORK = {
30
25
' rest_framework_json_api.renderers.JSONRenderer' ,
31
26
' rest_framework.renderers.BrowsableAPIRenderer' ,
32
27
),
28
+ ' DEFAULT_METADATA_CLASS' : ' rest_framework_json_api.metadata.JSONAPIMetadata' ,
33
29
}
34
30
```
35
31
You can’t perform that action at this time.
0 commit comments