Skip to content
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

Doesn't work for RelatedField and subclasses. #25

Open
mrmachine opened this issue Mar 19, 2015 · 3 comments
Open

Doesn't work for RelatedField and subclasses. #25

mrmachine opened this issue Mar 19, 2015 · 3 comments

Comments

@mrmachine
Copy link

The isinstance(..., list) check fails on queryset/manager values and so the repr of the queryset/manager object is displayed as a single object instead of showing a list of objects.

The advice is probably to just use RelatedField, but the reason for wanting to use ListOrItemField is to allow older API clients which are expecting to set and get a single value to do so without making any changes.

@estebistec
Copy link
Owner

Please see #27

@mrmachine
Copy link
Author

We are not using DRF3 in our project. Are you saying that this issue would only be fixed in an updated version of DRF-compound-fields that works with DRF3?

@estebistec
Copy link
Owner

Given my limited amount of time, DRF3 is at least where I'm solving these problems first. Of course I'll keep a maintenance branch open to accept pull requests on for DRF2.X fixes.

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

No branches or pull requests

2 participants