title: django rest framework nested modelserializer
body: <p>this is realted to my other question<br>
  <a href="https://stackoverflow.com/questions/24048595/django-rest-framework-multitable-model-inheritance-modelserializers-and-nested">django-rest-framework, multitable model inheritance, ModelSerializers and nested serializers</a></p>
  
  <p>In django rest framework we can define nested model serializer like so</p>
  
  <pre><code>class OtherModelSerializer(serializer.ModelSerializer):
      mybasemodel_set = MyBaseModelSerializer(many=True)
  
      class Meta:
          model = OtherModel
  </code></pre>
  
  <p>when we create an OtherModelSerializer,  the MyBaseModelSerializer is instantiated before <code>__init__</code> is run.
  I believe this is the case because if I override the <code>__init__()</code> of MyBaseModelSerializer and check "instance", it is None.   </p>
  
  <p><strong>My question is when and how does <code>MyBaseModelSerializer</code> get passed the queryset or instance for <code>mybasemodel_set</code>?</strong>  </p>
  
  <p>My goal here is to override what happens when we do this.</p>