title: Get every m2m relation in model as different object in DRF serializer
body: <p>I have a model Jurisdiction that has M2M relation with Franchise. And I use ModelViewSet on Jurisdiction.
  <strong>models.py</strong></p>
  <pre><code>class Franchise(models.Model):
      name = models.CharField('Name', max_length=255, db_index=True)
  
  
  class Jurisdiction(models.Model):
      franchise = models.ManyToManyField(
          Franchise,
          verbose_name='Franchise',
          related_name='jurisdictions',
          blank=True
      )
      name = models.CharField(
          &quot;Jurisdiction name&quot;,
          max_length=255,
          db_index=True,
          unique=True,
      )
      phone_number = models.CharField(
          &quot;Phone number&quot;,
          max_length=12,
          validators=[phone_number_regex],
          unique=True,
      )
  </code></pre>
  <p><strong>My views.py</strong></p>
  <pre><code>class JurisdictionViewSet(viewsets.ModelViewSet):
      queryset = Jurisdiction.objects.all().prefetch_related('franchise')
      serializer_class = JurisdictionSerializer
  </code></pre>
  <p><strong>serializers.py</strong></p>
  <pre><code>class JurisdictionSerializer(serializers.ModelSerializer):
      franchise = FranchiseSerializer(many=True)
  
      class Meta:
          model = Jurisdiction
          fields = (
              'id', 'name', 'phone_number', 'franchise',
          )
  </code></pre>
  <p>And serializer shows me:</p>
  <pre><code>{
    &quot;id&quot;: 1,
    &quot;name&quot;: &quot;Test juris 1&quot;,
    &quot;phone_number&quot;: &quot;200-000-1233&quot;,
     &quot;franchise&quot;: [
        {
          &quot;id&quot;: 1,
          &quot;name&quot;: &quot;Test franchise 1&quot;,
        },
        {
          &quot;id&quot;: 2,
          &quot;name&quot;: &quot;Test franchise 2&quot;,
        }
  }
  </code></pre>
  <p>How I can get a list view of every m2m relation as a different object in serializer? I tried to change the <strong>to_representation</strong> method of serializer but nothing works
  <strong>expected output:</strong></p>
  <pre><code>[
      {
        &quot;id&quot;: 1,
        &quot;name&quot;: &quot;Test juris 1&quot;,
        &quot;phone_number&quot;: &quot;200-000-1233&quot;,
        &quot;franchise_name&quot;: &quot;Test franchise 1&quot;
      },
      {
        &quot;id&quot;: 1,
        &quot;name&quot;: &quot;Test juris 1&quot;,
        &quot;phone_number&quot;: &quot;200-000-1233&quot;,
        &quot;franchise_name&quot;: &quot;Test franchise 2&quot;
      }
    ]
  </code></pre>