Thanks Malcom! But how would I apply this? Here's my code:
def main(request): feed_titles = Feed.objects.all() feed_list = FeedItem.objects.all() #for i in range (1,13): # feed_list.append(FeedItem.objects.filter(feed=i)[:7]) # doesn't work...why? t = loader.get_template('aggregator/aggregator.html') c = Context({ 'feed_titles': feed_titles, 'feed_list': feed_list, }) return HttpResponse(t.render(c)) Here my template: {% for Feed in feed_titles %} {% if forloop.counter0|divisibleby:"4" %}<div class="column">{% endif %} <div id="{{ Feed.site_css }}"><h2><a href="{{ Feed.site_url }}">{{ Feed.title }}</a></h2> {% for FeedItem in feed_list %} {% ifequal Feed.position FeedItem.feed_id %} <li><a href="{{ FeedItem.link }}">{{ FeedItem.title }}</a></li> {% endifequal %} {% endfor %} </div> {% if forloop.counter|divisibleby:"4" %}</div>{% endif %} {% endfor %} --Any help with limiting each feed's link number would be greatly appreciated! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---