title: Django foreign key relation in template
body: <p>i know you will say that this question is asked before many times but i havent solved it yet...</p>
  
  <p>models.py </p>
  
  <pre><code>class Doc(UploadModel):
      doc_no =  models.CharField(max_length=100, verbose_name = "No", blank=True)
      date_added = models.DateTimeField(verbose_name="Date", default=datetime.now,
                   editable=False)
  
  class DocImage(models.Model):
      property = models.ForeignKey(Doc, related_name='images')
      image = FileBrowseField("Docs", max_length=200,
              directory="doc_img/%Y/%m/%d/%H/%M/%S/", 
              extensions=[".jpg",".tif"], blank=True, null=True)
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def doc_detail(request, dosc_no):
  
      res = Doc.objects.filter(doc_no = dosc_no)        
      return render_to_response("doc/doc_detail.html",  {"result": res})
  </code></pre>
  
  <p>templates:</p>
  
  <pre><code>{% for i in docimage.property_set.all %}
  
  {{ i.image.url }}  
  
  {% endfor %}
  </code></pre>
  
  <p>i have tried above template but i didnt get any result. so i want to get imageurl adress in DocImage class...</p>
  
  <p>all helps </p>