Sorry for the confusion, this is what I am trying to achieve. It's the FeedType and then FeedItems whose feed (fk) has a (fk) to FeedType.
The HTML would be: {% for feed_type in FeedType %} <h1>{{ feed_type.name</h1> <ul> {% for FeedItem in Feed in FeedType %} <li>{{ feeditem.title }}</li> </ul> {% endfor %} Your code had me displaying each Feed of FeedType and then each FeedItem under it's appropriate Feed. What I'm trying to do is display each FeedType and directly under it the FeedItems. Make sense? Sorry this is confusing! On Jun 10, 10:02 am, bruno desthuilliers <bruno.desthuilli...@gmail.com> wrote: > On Jun 10, 3:12 pm, Chris McComas <mccomas.ch...@gmail.com> wrote: > > > tethered my phone to my laptop to test it out...have this code in my > > template: > > > {% regroup feeds by feed_type as feed_list %} > > {% for feed_type in feed_list %} > > {{ feed_type.grouper }} > > > {% for entry in feed_type.list %} > > <li>{{ entry.title }}</li> > > {% endfor %} > > {% endfor %} > > > it does the first {% for %} loop perfectly, the second {% for %} loop > > gets the Feed from the database for that FeedType, > > ??? Not sure I understand what you mean... > > > but I need it to > > get FeedItems for Feed in FeedType > > You mean something like this ? > > {% regroup feeds by feed_type as feed_list %} > > <ul> > {% for feed_type in feed_list %} > <li> > {{ feed_type.grouper }} > <ul> > {% for feed in feed_type.list %} > <li> > {{ feed.title }} > <ul> > {% for feeditem in feed.items %} > <li>{{ item.title }}</li> > {% endfor %} > </ul> > </li> > {% endfor %} > </ul> > </li> > {% endfor %} > </ul> -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.