title: Get list inside the annotate in django ORM
body: <p>I have 3 tables:-</p>
  
  <pre><code> class Profile(models.Model):
         id = models.AutoField(primary_key=True)
         name = models.CharField()
         .....
         #some more field
         .....
  
  class ProfileTestMapping(models.Model):
           id = models.AutoField(primary_key=True)
           profile = models.ForeignKey(Profile)
           test = models.ForeignKey(Test)
           .....
           #some more field
           ....
  
  class Test(models.Model):
           id = models.AutoField(primary_key=True)
           name = models.CharField()
          .....
           #some more field
           ....
  </code></pre>
  
  <p>1 profile has many tests. So I want to get the data like this:-</p>
  
  <pre><code>This is a raw array I am writing for the example purpose. 
  profileList = [
  
      {
          profileName: 'any-name',
          ......
          otherProfileDetails
          .......
          testList: [
           {
              name: testName,
              id: 463743
           },
           {
              name: testName2,
              id: 463743
           }
          ]
       }
  ]
  </code></pre>
  
  <p>I am getting the <code>count</code> of test mapped with the profile using <code>annotate</code> but not getting the details of the test which are mapped with the profile.</p>
  
  <p><strong>UPDATED:-</strong>
  Current Query I am getting the number of the count but not List of mapped test data:-</p>
  
  <pre><code>Profile.objects.filter(isDisable=0).value('id', 'name').annotate(
    testCount = Count('profiletestmapping__test_id')
    testList = //Unable to get list of related data
  )
  </code></pre>