File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 9
9
10
10
ROOT_URLCONF = 'example.urls_test'
11
11
12
- JSON_API_FIELD_NAMES = 'camelize'
12
+ JSON_API_FORMAT_FIELD_NAMES = 'camelize'
13
13
JSON_API_FORMAT_TYPES = 'camelize'
14
14
JSON_API_PLURALIZE_TYPES = True
15
15
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ def format_keys(obj, format_type=None):
133
133
134
134
`format_keys` function and `JSON_API_FORMAT_KEYS` setting are deprecated and will be
135
135
removed in the future.
136
- Use `format_field_names` and `JSON_API_FIELD_NAMES ` instead. Be aware that
136
+ Use `format_field_names` and `JSON_API_FORMAT_FIELD_NAMES ` instead. Be aware that
137
137
`format_field_names` only formats keys and preserves value.
138
138
139
139
Takes either a dict or list and returns it with camelized keys only if
@@ -144,7 +144,7 @@ def format_keys(obj, format_type=None):
144
144
warnings .warn (
145
145
"`format_keys` function and `JSON_API_FORMAT_KEYS` setting are deprecated and will be "
146
146
"removed in the future. "
147
- "Use `format_field_names` and `JSON_API_FIELD_NAMES ` instead. Be aware that "
147
+ "Use `format_field_names` and `JSON_API_FORMAT_FIELD_NAMES ` instead. Be aware that "
148
148
"`format_field_names` only formats keys and preserves value." ,
149
149
DeprecationWarning
150
150
)
You can’t perform that action at this time.
0 commit comments