Post LIST OF OBJECTS from HTML/axios with multipart/form-data to DRF multipart parser
问题 This is my serializer: class ParentSerializer(serializers.ModelSerializer): children = ChildSerializer(many=True) # reverse FK relation ParentSerializer also has an image field, so the request has to be multipart/form-data to support both image and data in a single request. The following code/test works fine: test_data = QueryDict('', mutable=True) dictionary = { 'name': ['test'], 'children[0]': [{'key1': 'val1', 'key2': 'val2'}] } test_data.update(MultiValueDict(dictionary)) test_serializer