def get_serializer(self, *args, **kwargs):
    if 'data' in kwargs:
        data = kwargs['data']
if isinstance(data, list):
    kwargs['many'] = True
return super(MyViewSet, self).get_serializer(*args, **kwargs)
How to post/put json data to ListSerializer