def tags_published():
 from tagging.models import Tag
 from zinnia.models.entry import Entry
 tags_entry_published = Tag.objects.usage_for_queryset(Entry.published.all())
 return Tag.objects.filter(name__in=[t.name for t in tags_entry_published])

def tags_published ( ) : from tagging . models import Tag from zinnia . models . entry import Entry tags_entry_published = Tag . objects . usage_for_queryset ( Entry . published . all ( ) ) return Tag . objects . filter ( name__in = [ t . name for t in tags_entry_published ] )
return the published tags .