title: Django ORM usage in template
body: <p>I have created and object which contains a few students. I am trying to use each student to pull his data from another model as I iterate through my origianl student object known as <code>student_list</code>. I didn't post the view I made because I know that the object works fine.</p>
  
  <p>I have the following models:</p>
  
  <pre><code>class StudentDetail(Base):
      student = models.OneToOneField('Usr', limit_choices_to={'user_type': 'Student'})
      klass = models.ForeignKey('Klass', related_name='kara_pore')
  
  class Usr(AbstractUser, Base):
      type_choices = (
          ('Student', 'Student'),
          ('Teacher', 'Teacher'),
      )
      user_type = models.CharField(max_length=10,
                                   choices=type_choices,
                                   default='Student')
  class Score(Base):
      student = models.ForeignKey(Usr, limit_choices_to={'user_type': 'Student'}, related_name='scored')
      subject = models.ForeignKey(Subject)
      teacher = models.ForeignKey(Usr, limit_choices_to={'user_type': 'Teacher'}, related_name='marked')
      exam = models.CharField(max_length=50)
      exam_date = models.DateField()
      score = models.IntegerField()
      out_of = models.IntegerField()
  </code></pre>
  
  <p>The template file:</p>
  
  <pre><code>{% for student in student_list %}
  &lt;tr&gt;
      &lt;td&gt; &lt;a href=#&gt;{{ student }}&lt;/a&gt; &lt;/td&gt;
      &lt;td&gt; {{ student.student.scored.score }} &lt;/td&gt; &lt;-- this line doesn't work.
      &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
      {% endfor %}
  </code></pre>
  
  <p>The <code>student_list</code> object works and I can easily iterate through it. I am using that object to filter out data from the Score class. I have never used Zip in my view before. And I don't know whether this is an ideal situation for using that. As far as I know, using the dots to jump through classes should work and get me the value I need. I must be doing something wrong here. The template renders, but the score is not displayed.</p>
  
  <p>Note: Here is my view.</p>
  
  <pre><code>def View(request, pk):
      this_klass = Klass.objects.get(id=pk)
      student_list = this_klass.kara_pore.all()
      return render(request, "grades/view.html", {'this_klass': this_klass, 'student_list': student_list})
  </code></pre>