@register.inclusion_tag('zinnia/tags/dummy.html')
def get_popular_entries(number=5, template='zinnia/tags/entries_popular.html'):
 return {'template': template, 'entries': Entry.published.filter(comment_count__gt=0).order_by('-comment_count', '-publication_date')[:number]}

@ register . inclusion_tag ( 'zinnia/tags/dummy.html' ) def get_popular_entries ( number = 5 , template = 'zinnia/tags/entries_popular.html' ) : return { 'template' : template , 'entries' : Entry . published . filter ( comment_count__gt = 0 ) . order_by ( '-comment_count' , '-publication_date' ) [ : number ] }
return popular entries .