title: Django Rest Framework nested manytomany serializer
body: <p>I have to models as below:</p>
  <pre class="lang-py prettyprint-override"><code>class PositionModel(BaseModel):
      &quot;&quot;&quot;
      User Position/Designation Model
      &quot;&quot;&quot;
      name = models.CharField(max_length=255)
  
      class Meta:
          ordering = [&quot;created_at&quot;]
  
      def __str__(self):
          return f&quot;{self.name}&quot;
  
  
  class SuperiorModel(BaseModel):
      &quot;&quot;&quot;
      Super model for position
      &quot;&quot;&quot;
      position = models.OneToOneField(PositionModel, on_delete=models.CASCADE, related_name='position_superior')
      superior = models.ManyToManyField(PositionModel, blank=True)
  
      def __str__(self):
          return f'{self.position.name}'
  </code></pre>
  <p>Signals:</p>
  <pre class="lang-py prettyprint-override"><code>@receiver(post_save, sender=PositionModel)
  def create_position_instances(sender, instance, created, **kwargs):
      if created:
          SuperiorModel.objects.create(
              position=instance
          )
  
  
  @receiver(post_save, sender=PositionModel)
  def save_position_instances(sender, instance, **kwargs):
      instance.position_superior.save()
  </code></pre>
  <p>What I want here is to create position with superior model.</p>
  <p>My expected payload for post is this:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;name&quot;: &quot;test position&quot;,
    &quot;superior&quot;: [1,2] # &lt;-- Could be empty array if there is no superior
  }
  </code></pre>
  <p>So that when I creates a position the superior value could be created in the <code>SuperiorModel</code>.</p>
  <p>Also in the get method I want to get the data same as the payload.</p>