title: Django: Foreign key related list
body: <pre><code>class Client(models.Model):
      Name = models.CharField(max_length=100,blank=False,null=False)
  
  class Expense(models.Model):
  
      client = models.ForeignKey(Client,on_delete=models.CASCADE)
      title = models.CharField(max_length=100,blank=False,null=False)
      amount= models.DecimalField(max_digits=8,decimal_places=2)
      #currency = models.CharField(max_length = 5)
      from_date = models.DateField(auto_now=False)
      to_date  = models.DateField(auto_now=False)
      Description = models.TextField()
  
      def __unicode__(self):
          return self.title
  </code></pre>
  
  <p>I have two models above where <code>Expense</code> should be the object of  <code>Client</code> . 
  how to write templating part:</p>
  
  <p>1.To get list of clients . </p>
  
  <p>2.If we click on the client , should get list of expenses list related to the client.....</p>