Re: Displaying Related Data

2007-03-27 Thread Paul G. Barnes
est)) > > all_personel.html: > > {% regroup personel by school as personel_by_school %} > {% for school_personel in personel_by_school %} > {{ school_personel.grouper.name }} > {% for person in school_personel.list %} > {{person.first_name}} {{person.last_nam

Displaying Related Data

2007-03-26 Thread Paul G. Barnes
OK, I'm a Python/Django newbie (more or less), and I have a problem. I had these two models (details stripped for clarity: class School(models.Model): ... name = models.CharField() street = models.CharField() mail = models.CharField() city = models.CharField() state = mod