Hi,
Did you figure it out?
This should work:
{% for p1 in partmodels %}
{% for p2 in p1.partmodel_set %}
{{ p2 }}
{% endfor %}
{% endfor %}
Collin
On Wednesday, December 17, 2014 9:52:19 AM UTC-5, Rodney Lewis wrote:
>
> Hey All:
>
> I need my template to iterate through each PartModel and then iterate
> through the PartModels associated (through a self-referential
> ManyToManyField) with the PartModel in question. I am doing everything I'm
> supposed to be doing according to my reading of the "entry_set syntax"
> section of the "Making Queries" section of the docs to no avail.
>
> http://stackoverflow.com/questions/27527717/django-manytomanyfield-not-displaying-in-template
>
> Thank you in advance for any assistance!
>
> --
> Rodney Lewis
> http://www.youtube.com/pyrodney
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/302e00a8-0ce9-4564-a7bc-86b803b5d022%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.