title: Fetch data in many-many relationship in a single row
body: <p>These are my models</p>
  <p><strong>Team Table</strong></p>
  <pre><code>class Team(CommonModel):
      ****Other Fields****
      name = models.CharField()
      game = models.ManyToManyField(Game, through='Team_Game')
  </code></pre>
  <p><strong>Mapper Table</strong></p>
  <pre><code>class Team_Game(CommonModel):
      game = models.ForeignKey(Game, on_delete=models.CASCADE)
      team = models.ForeignKey(Team, on_delete=models.CASCADE)
      status = models.SmallIntegerField(default=1)
      class Meta:
          db_table = 'team_game'
  </code></pre>
  <p><strong>Game Table</strong></p>
  <pre><code>class Game(CommonModel):
      name = models.CharField(max_length=128, blank=False, null=False, unique=True)
      status = models.SmallIntegerField(default=1)
  </code></pre>
  <p>I want to retrieve team with id 1 and game associated with it
  Expected data: team.name, other_team_cols, [game_id1, game_id2]</p>
  <p>Query:</p>
  <pre><code>team_data = Team.objects.filter(id=1).values('id', 'name', 'game__name')
  </code></pre>
  <p>Output:</p>
  <pre><code>[
      {
          &quot;id&quot;: &quot;1&quot;,
          &quot;name&quot;: 'abc',
          &quot;game__name&quot;: &quot;game1&quot;
      },
      {
          &quot;_packageID&quot;: &quot;1&quot;,
          &quot;name&quot;: &quot;def&quot;,
          &quot;game__name&quot;: &quot;game2&quot;
      }
  ]
  </code></pre>
  <p>Expected Output:</p>
  <pre><code>{
          &quot;id&quot;: &quot;1&quot;,
          &quot;name&quot;: 'abc',
          &quot;game__name&quot;: [&quot;gam1&quot;, &quot;gam2&quot;]
  }
  </code></pre>