diff --git a/mayan/apps/document_indexing/apps.py b/mayan/apps/document_indexing/apps.py index c9b9dc5cbd..38a20c153a 100644 --- a/mayan/apps/document_indexing/apps.py +++ b/mayan/apps/document_indexing/apps.py @@ -100,17 +100,24 @@ class DocumentIndexingApp(MayanAppConfig): model=IndexInstanceNode, related='index_template_node__index' ) - SourceColumn( + column_index_label = SourceColumn( attribute='label', is_identifier=True, is_sortable=True, source=Index ) + column_index_label.add_exclude(source=IndexInstance) SourceColumn( + attribute='label', is_object_absolute_url=True, is_identifier=True, + is_sortable=True, source=IndexInstance + ) + column_index_slug = SourceColumn( attribute='slug', is_sortable=True, source=Index ) - SourceColumn( + column_index_slug.add_exclude(IndexInstance) + column_index_enabled = SourceColumn( attribute='enabled', is_sortable=True, source=Index, widget=TwoStateWidget ) + column_index_enabled.add_exclude(source=IndexInstance) SourceColumn( func=lambda context: context[ diff --git a/mayan/apps/document_indexing/views.py b/mayan/apps/document_indexing/views.py index 5972da6870..55e79cc3c3 100644 --- a/mayan/apps/document_indexing/views.py +++ b/mayan/apps/document_indexing/views.py @@ -278,6 +278,7 @@ class IndexListView(SingleObjectListView): def get_extra_context(self): return { + 'hide_object': True, 'hide_links': True, 'no_results_icon': icon_index, 'no_results_main_link': link_index_template_create.resolve(