title: Using a Django model method from a template
body: <p>I have a model like this:</p>
  
  <pre><code>class Car(models.Model):
      parentType = models.ForeignKey("self", null=True,blank=True)
      engine = models.TextField (null=True)
  </code></pre>
  
  <p>A car can have an engine or be a variant of another car with the same engine. Right now I have an accessor like this:</p>
  
  <pre><code>def GetEngine(self):
      if self.parentType:
          return self.parentType.GetEngine()
      return self.engine
  </code></pre>
  
  <p>But this is quickly getting ugly with templates, as I need a property to access (cannot call the function) and then I end up with properties named nearly the same as the fields. Is there a way to express the behaviour above directly within Django?</p>