File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 99
1010ROOT_URLCONF = 'example.urls_test'
1111
12- JSON_API_FIELD_NAMES = 'camelize'
12+ JSON_API_FORMAT_FIELD_NAMES = 'camelize'
1313JSON_API_FORMAT_TYPES = 'camelize'
1414JSON_API_PLURALIZE_TYPES = True
1515
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ def format_keys(obj, format_type=None):
133133
134134 `format_keys` function and `JSON_API_FORMAT_KEYS` setting are deprecated and will be
135135 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
137137 `format_field_names` only formats keys and preserves value.
138138
139139 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):
144144 warnings .warn (
145145 "`format_keys` function and `JSON_API_FORMAT_KEYS` setting are deprecated and will be "
146146 "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 "
148148 "`format_field_names` only formats keys and preserves value." ,
149149 DeprecationWarning
150150 )
You can’t perform that action at this time.
0 commit comments