Django PREFETCH_RELATED - only first element shown in template
<p>I use prefetch_related to get reverse relation rows. Everything works fine with the only exception that I get only one of many relations. Better explained by example.</p>

<p>Model:</p>

<pre><code>class Tasks(models.Model):
    #...

class TaskResponsiblePeople(models.Model):
    task = models.ForeignKey('Tasks', related_name='task_responsible_people')
</code></pre>

<p>View:</p>

<pre><code>def showTasks(request):
   tasks = Tasks.objects.prefetch_related('task_responsible_people').all()
   return render_to_response('task_management/task_list.html',
                         {'responsible_people_form':responsible_people_form,
                          'tasks':tasks},
                          context_instance=RequestContext(request))

{% for task in tasks %}
    &lt;tr&gt;
        &lt;td&gt;
            &lt;ul&gt;
                {% for resp in task.task_responsible_people.all %}
                    &lt;li&gt;{{resp.auth_user.first_name}}&lt;/li&gt;
                {% endfor %}
            &lt;/ul&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
{% endfor %}
</code></pre>

<p>The problem here is that for one of the tasks I have several responsible people, but still get only on of them. Is it because I have to use the prefix "_set" somewhere in the code? If I do, I end up with an error message</p>