You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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?
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.
The
isinstance(..., list)
check fails on queryset/manager values and so therepr
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 useListOrItemField
is to allow older API clients which are expecting to set and get a single value to do so without making any changes.The text was updated successfully, but these errors were encountered: