We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66572cc commit eca878aCopy full SHA for eca878a
rest_framework_json_api/renderers.py
@@ -36,7 +36,8 @@ class JSONRenderer(renderers.JSONRenderer):
36
media_type = 'application/vnd.api+json'
37
format = 'vnd.api+json'
38
39
- def extract_attributes(self, fields, resource):
+ @staticmethod
40
+ def extract_attributes(fields, resource):
41
data = OrderedDict()
42
for field_name, field in six.iteritems(fields):
43
# ID is always provided in the root of JSON API so remove it from attributes
0 commit comments