So it is. Thank you. On Feb 8, 9:04 am, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > sponsor = models.ManyToManyField(Sponsor, > > filter_interface=models.HORIZONTAL, related_name="section") > > > What I'm trying to do in a template is show all the sections that > > sponsor is in. It seems to me I should be able to do something like > > > {% for section in sponsor.section_set.all %} > > You have specified related_name="section" which is the name that will be > used instead of default section_set. So it should be sponsor.section.all > in your case
--~--~---------~--~----~------------~-------~--~----~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---