Added index rebuilding views

This commit is contained in:
Roberto Rosario
2011-05-18 15:43:32 -04:00
parent 2a2fba9ac6
commit e8b8904469
8 changed files with 86 additions and 29 deletions

View File

@@ -318,6 +318,9 @@ def document_view_simple(request, document_id):
if document_group_subtemplate:
subtemplates_list.append(document_group_subtemplate)
if document.indexinstance_set.count():
subtemplates_list.append(get_document_indexing_subtemplate(document))
return render_to_response('generic_detail.html', {
'object': document,
'document': document,