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.
2 parents 8a97379 + 6fbbdc3 commit 14a303aCopy full SHA for 14a303a
rest_framework_json_api/renderers.py
@@ -55,7 +55,7 @@ def render(self, data, accepted_media_type=None, renderer_context=None):
55
56
# If detail view then json api spec expects dict, otherwise a list
57
# - http://jsonapi.org/format/#document-top-level
58
- if view and view.action == 'list':
+ if view and hasattr(view, 'action') and view.action == 'list':
59
# Check for paginated results
60
results = (data["results"] if isinstance(data, dict) else data)
61
0 commit comments