Closed hontrang closed 7 years ago
Error msg: Invalid data. Expected a dictionary, but got str
No other solutions, it seems like current is the best, see http://www.django-rest-framework.org/api-guide/serializers/#writing-update-methods-for-nested-representations for more detail
work-around: manually convert string to dict, see code below embeded field: collection code: request.data['collection'] = ast.literal_eval(request.data['collection'])