def tag_detail(request, slug, template_name='blog/tag_detail.html', **kwargs):
 tag = get_object_or_404(Tag, name__iexact=slug)
 return list_detail.object_list(request, queryset=TaggedItem.objects.get_by_model(Post, tag).filter(status=2), extra_context={'tag': tag}, template_name=template_name, **kwargs)

def tag_detail ( request , slug , template_name = 'blog/tag_detail.html' , ** kwargs ) : tag = get_object_or_404 ( Tag , name__iexact = slug ) return list_detail . object_list ( request , queryset = TaggedItem . objects . get_by_model ( Post , tag ) . filter ( status = 2 ) , extra_context = { 'tag' : tag } , template_name = template_name , ** kwargs )
tag detail template: blog/tag_detail .