Skip to content

Fix .all() call on instance objects instead of only manager objects #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 22, 2015

Conversation

kaldras
Copy link
Contributor

@kaldras kaldras commented Sep 22, 2015

Extracting the included data for many to one relations failed because the all() function was called on an instance instead of a manager object. The all() call should only happen for ListSerializer.

jerel added a commit that referenced this pull request Sep 22, 2015
Fix .all() call on instance objects instead of only manager objects
@jerel jerel merged commit 578e87d into django-json-api:develop Sep 22, 2015
@kaldras kaldras deleted the bugfix/extract-included branch September 23, 2015 06:22
@jsenecal jsenecal modified the milestone: 2.0 release Sep 30, 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