Skip to content

Conversation

leifurhauks
Copy link

Previously, the renderer would check whether view.action was 'list',
and if not it would assume the data was a single resource instance.
This can cause problems when a custom route returns list data.

With this commit, the renderer instead checks whether the serializer
that produced that data has many set to True.

Previously, the renderer would check whether `view.action` was `'list'`,
and if not it would assume the data was a single resource instance.
This can cause problems when a custom route returns list data.

With this commit, the renderer instead checks whether the serializer
that produced that data has `many` set to True.
jsenecal added a commit that referenced this pull request Oct 9, 2015
Change in how the renderer detects list data
@jsenecal jsenecal merged commit 279df07 into django-json-api:develop Oct 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants