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
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
2 matches
Mail list logo