I've got roughly models like these:

```
class Person(models.Model):
  ...
  name = models.CharField(max_length=40)
  eyes = models.CharField(max_length=12)
  ...
  relationships = models.ManyToManyField('self', through='Relationship',
    symmetrical=False, related_name='related_to')

class Relationship(models.Model):
  from_person = models.ForeignKey(Person, related_name='from_people', ...)
  to_person = models.ForeignKey(Person, related_name='to_people', ...)
  status = models.CharField(max_length=20)

```

I've got reasonable database entries, and can see them in the Python shell:

```
>>> p1 = Person.objects.get(...)
>>> r = Relationship.objects.filter(from_person=p1)
<QuerySet [<Relationship: p1 p2 status>], [<Relationship: p1 p99 status>]>
>>> r[0].status
Friend
>>> r[0].from_person.name
p1
>>> r[0].from_person.eyes
Brown    # p1's eye color
>>> r[0].to_person.name
p2
>>> r[0].to_person.eyes
Blue    # p2's eye color !!!

```

Now I want to access this same information from my templates, but I don't see what I expect:

```
<p>name={{ person.name }} ({{ person.eyes }})</p>
<p>len={{ person.relationships.all|length }}</p>
{% for rel in person.relationships.all %}
  <p> rel[{{ forloop.counter }}]={{ rel.status }}
        {{ rel.from_person.name }} ({{ rel.from_person.eyes }})
        {{ rel.to_person.name }}   ({{ rel.to_person.eyes }})</p>
{% endfor %}

```

This displays:

```
name=p1 (Brown)
len=2
rel[0]=
rel[1]=

```

I expect:

```
name=p1 (Brown)
len=2
rel[0]=Friend p1 (Brown) p2 (Blue)
rel[1]=Enemy p1 (Brown) p99 (Red!)

```

I added accessor methods to the 'Relationship' model, but it didn't make a difference.
I messed with using the template "slice" filter.
I'm missing something basic...

Thanks for your help!

edit: This template code does what I want for the example above. Thanks to the two commenters below:

```
{% for rel in person.from_people.all %}
  <p> rel[{{ forloop.counter }}]={{ rel.status }}
        {{ rel.from_person.name }} ({{ rel.from_person.eyes }})
        {{ rel.to_person.name   }} ({{ rel.to_person.eyes   }})</p>
{% endfor %}

```