title: Django - serializing queryset along with related models
body: <p>There are hundreds of posts related to an elementary goal.</p>
  
  <p>I have a simple model:</p>
  
  <pre><code>class ModelA(models.Model):
       # I've got only two fields in reality, 
       # but let's suppose there are 150 of them
  
  class ModelB(models.Model):
      # fields
  
  class ModelC(models.Model):
      field_c = Integer
      modelA = models.ForeignKey('ModelB')
      modelB = models.ForeignKey(ModelC)
  
  model_c_instance = ModelC.objects.select_related().get(pk=pk)
  </code></pre>
  
  <p>All I want to do is to come up with a JSON object which would include the fields for ModelA and ModelB.  </p>
  
  <ol>
  <li>Wadofstaff (<a href="https://stackoverflow.com/questions/3753359/serializing-foreign-key-objects-in-django">post</a>) does not suit for Django 1.7 and higher.</li>
  <li>This <a href="https://stackoverflow.com/questions/21994290/serializing-data-results-from-query-with-select-related-into-json">post</a> does not shed light on how I should serialize the objects.</li>
  <li>This <a href="https://stackoverflow.com/questions/17032362/django-serializing-queryset-with-related-entity-fields">post</a> tell about Full Serializers, but there's no code snippet to see how it is used.</li>
  </ol>
  
  <p>My final JSON object should look like </p>
  
  <pre><code>[{
      "model": "userinfo", 
      "fields": {
             "field_c ": "9966", 
             "modelA": [{ 
                    # modelA fields
            }
             etc...
      }] 
  </code></pre>
  
  <p>Do I need REST framework ? Or Full Serializers ?<br>
  Please could anyone suggest a structured answer to this topic. I can't come up with a solution for two weeks.</p>