title: Extending Models In Django
body: <p>I have a model like this:</p>
  
  <pre><code>class Model1(models.Model):
      .
      .
      .
  </code></pre>
  
  <p>and an extended model:</p>
  
  <pre><code> class Model2(Model1):
      .
      .
      .
  </code></pre>
  
  <p>With this query:</p>
  
  <pre><code>model1 = Model1.objects.all()
  </code></pre>
  
  <p>How can I find items that belongs to inherited model (Model2) with above query?</p>
  
  <p>Edit:
  I want to access this query from Model1:</p>
  
  <pre><code>class Model1(models.Model):
        def is_model2(self):
           m2 = self.objects.filter(model2__isnull=False)
               if m2.count() &gt; 0:
                  if self in m2:
                      return True
                  else:
                      return False
  </code></pre>
  
  <p>Thanks in advance</p>