title: Django rest framework bulk post object
body: <p>I want insert bulk json via django rest_framework however, I get a error message ;</p>
  <p>typed following line ;</p>
  <pre><code>{
      &quot;non_field_errors&quot;: [
          &quot;Invalid data. Expected a dictionary, but got list.&quot;
      ]
  }
  </code></pre>
  <p>my serializer.py file include following code block;</p>
  <pre><code>class DrfSerializerV2(serializers.ModelSerializer):
  def __init__(self,*args,**kwargs):
      many=kwargs.pop('many',True)
      super(DrfSerializerV2,self).__init__(many=True,*args,**kwargs)
  class Meta:
      model = DrfData
      fields=['id','name','duration','rating','typ']
  </code></pre>
  <p>and my views.py file ;</p>
  <pre><code>class ActionViewSet(viewsets.ModelViewSet):
   queryset = DrfData.objects.filter(typ=&quot;action&quot;)
   serializer_class = serializers.DrfSerializerV2
  </code></pre>
  <p>finally send json file via post;</p>
  <pre><code>[
      {&quot;name&quot;:&quot;m1&quot;,&quot;duration&quot;:120,&quot;rating&quot;:4.7},
      {&quot;name&quot;:&quot;m2&quot;,&quot;duration&quot;:120,&quot;rating&quot;:4.5}
  ]
  </code></pre>
  <p>however, I can't handle this error message.
  if I send sperataly, there is no problem.</p>
  <p>but, I can't resolve this error for bulk insert</p>