title: Writing Python/Django view to "join" across three models/tables
body: <p>Just begin my Python/Django experience and i have a problem :-)</p>
  
  <p>So i have a model.py like this:</p>
  
  <pre><code>from django.db import models
  
  class Priority(models.Model):
      name = models.CharField(max_length=100)
  
  class Projects(models.Model):
      name = models.CharField(max_length=30)
      description = models.CharField(max_length=150)
      priority = models.ForeignKey(Priority)
  
  class Tasks(models.Model):
      name = models.CharField(max_length=30)
      description = models.CharField(max_length=40)
      priority = models.ForeignKey(Priority)
  </code></pre>
  
  <p>In the priority table i plan to store data like 1.High, 2.Medium , 3.Low and in Tasks table priority will be stored as id (1, 2 or 3)</p>
  
  <p>And the question is how to write a view that display all my tasks but with Priority named? For example:</p>
  
  <pre><code>name: Task 1
  
  description: Description 1
  
  priority: **High**
  </code></pre>