title: What is the best way to manage custom serializer in DRF
body: <p>I have a custom serializer which contains some other model serializer, data field, and some list field for manage many to many relation. Here is an example.</p>
  
  <pre><code>class CustomSerializer(serializers.Serializer):
      a_model_serializer = AModelSerializer()
      b_model_serializer = serializers.ListField(child=CModelSerializer())
      another_field = serializers.CharField()
  </code></pre>
  
  <p>Based on this serializer I have to create some model object and some many to many relation through a third table. Now, what could be the best way to manage this situation.</p>