@block_user_agents
@require_GET
def with_localization_tag(request, tag=None):
 tag_obj = ((tag and get_object_or_404(LocalizationTag, name=tag)) or None)
 docs = Document.objects.filter_with_localization_tag(locale=request.LANGUAGE_CODE, tag=tag_obj)
 paginated_docs = paginate(request, docs, per_page=DOCUMENTS_PER_PAGE)
 context = {'documents': paginated_docs, 'count': docs.count(), 'tag': tag_obj, 'tag_name': tag}
 return render(request, 'wiki/list/with_localization_tags.html', context)

@ block_user_agents @ require_GET def with_localization_tag ( request , tag = None ) : tag_obj = ( ( tag and get_object_or_404 ( LocalizationTag , name = tag ) ) or None ) docs = Document . objects . filter_with_localization_tag ( locale = request . LANGUAGE_CODE , tag = tag_obj ) paginated_docs = paginate ( request , docs , per_page = DOCUMENTS_PER_PAGE ) context = { 'documents' : paginated_docs , 'count' : docs . count ( ) , 'tag' : tag_obj , 'tag_name' : tag } return render ( request , 'wiki/list/with_localization_tags.html' , context )
lists wiki documents with localization tag .