Skip to content

Commit 2f9a0cb

Browse files
committed
Updated documentation of recommended settings. Closes #188
1 parent 1e2d7d9 commit 2f9a0cb

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

docs/usage.md

+3-7
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,13 @@ The easiest way to make use of those features is to import ModelSerializer varia
99
from `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
1414
REST_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

0 commit comments

Comments
 (0)