@register.assignment_tag
def feed_list(slug, limit=10):
 return BlogEntry.objects.filter(feed__feedaggregate__slug=slug).order_by('-pub_date')[:limit]

@ register . assignment_tag def feed_list ( slug , limit = 10 ) : return BlogEntry . objects . filter ( feed__feedaggregate__slug = slug ) . order_by ( '-pub_date' ) [ : limit ]
returns a list of blog entries for the given feedaggregate slug .