title: How to get child objects field in django
body: <p>I writing a django app and I need to access child objects field in admin and templates:
  my models:</p>
  
  <pre><code>class House(models.Model):
      doc_code = models.IntegerField()
      ...
      def getGuardian(self):
         guardian = self.person_set.filter(membership=1)
         return guardian
      def __str__(self):
         return "Family: " + str(self.doc_code)
  class Person(models.Model):
      family = models.ForeignKey(House)
      first_name = models.CharField(max_length=50)
      last_name = models.CharField(max_length=50)
      ...
  def __str__(self):
      return self.last_name + ' ' + self.first_name
  </code></pre>
  
  <p>in view:</p>
  
  <pre><code>houses = House.objects.order_by('doc_code')
  </code></pre>
  
  <p>in template:</p>
  
  <pre><code>&lt;li&gt;{{house.doc_code}} {{house.getGuardian}}&lt;/li&gt;
  </code></pre>
  
  <p>I receive:</p>
  
  <pre><code>1 [&lt;Person: Smith John&gt;]
  </code></pre>
  
  <p>How can I get rid of "[ &lt; Person:....> ]" and just display the name?
  Also how can I change the title of field getGuardian in Admin Page?</p>