Re: nOOb alert, accessing set variables in template

2008-10-17 Thread R. Gorman
You could use {{ for obj in A.a_set.all }} and print out the {{ obj }}. R. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To

nOOb alert, accessing set variables in template

2008-10-17 Thread Mr. T
Just start with Django and liking it a lot. Made a database and a page that displays queries as html table. It was all too easy. In one of my models I use a Foreign key to ref another object. class A: class B: a = ForeignKey(A) When I include A in the context of my template, I