Add sortable index instance label column
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -102,8 +102,12 @@ class DocumentIndexingApp(MayanAppConfig):
|
||||
)
|
||||
|
||||
SourceColumn(
|
||||
attribute='label', is_identifier=True, is_sortable=True,
|
||||
source=Index
|
||||
attribute='label', exclude=(IndexInstance,), is_identifier=True,
|
||||
is_sortable=True, source=Index
|
||||
)
|
||||
SourceColumn(
|
||||
attribute='label', is_object_absolute_url=True, is_identifier=True,
|
||||
is_sortable=True, source=IndexInstance
|
||||
)
|
||||
SourceColumn(
|
||||
attribute='slug', exclude=(IndexInstance,), is_sortable=True,
|
||||
|
||||
@@ -309,6 +309,7 @@ class IndexListView(SingleObjectListView):
|
||||
def get_extra_context(self):
|
||||
return {
|
||||
'hide_links': True,
|
||||
'hide_object': True,
|
||||
'no_results_icon': icon_index,
|
||||
'no_results_main_link': link_index_template_create.resolve(
|
||||
context=RequestContext(request=self.request)
|
||||
|
||||
Reference in New Issue
Block a user