ListField should enforce that input is a list by pattisdr · Pull Request #3513 · encode/django-rest-framework (original) (raw)
Purpose
A dictionary is allowed as input in a ListField. If a dictionary is received as input, the keys of the object are retained, and the values are ignored. I assume the ListField should enforce that the input is an array, especially because the error message in to_internal_value
includes "not a list" if something is wrong with the data.
Changes
Enforces that data cannot be a collections.Mapping.