title: Django REST Framework: Flatten nested JSON to many objects
body: <p>I have this child model with parent field in it, and I'm getting a JSON from an API (which I can't control its format).</p>
  
  <p>models.py:</p>
  
  <pre><code>class ChildModel(models.Model):
      name = models.CharField(max_length=100)
      age = models.IntegerField()
      parent = models.CharField(max_length=100)
  </code></pre>
  
  <p>API.json:</p>
  
  <pre><code>{
     "parent_name":'Homer',
     "children":[
        {
           "name":'Bart',
           "age":20
        },
        {
           "name":'Lisa',
           "age":15
        },
        {
           "name":'Maggie',
           "age":3
        }
     ]
  }
  </code></pre>
  
  <p>I'm trying to write a serializer that will get this JSON and will create 3 different child objects.</p>
  
  <p>I manage to do this for one child:</p>
  
  <pre><code>class ChildSerializer(serializers.Serializer):
      name = serializers.CharField()
      age = serializers.IntegerField()
  
  class ParentSerializer(serializers.ModelSerializer):
      parent_name = serializers.CharField()
      children = ChildSerializer(source='*')
  
      class Meta:
          model = ChildModel
          fields = ('parent_name', 'children')
  </code></pre>
  
  <p>But when there are more than one child for a parent, I don't know how to save multiple children.</p>
  
  <p>I tried to change it like this:</p>
  
  <pre><code>children = ChildSerializer(source='*', many=True)
  </code></pre>
  
  <p>But the validated data looks like this:</p>
  
  <pre><code>OrderedDict([(u'parent_name', u'Homer'), (u'name', u'age')])
  </code></pre>
  
  <p>Any suggestions how to make it possible?</p>