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(
|
SourceColumn(
|
||||||
attribute='label', is_identifier=True, is_sortable=True,
|
attribute='label', exclude=(IndexInstance,), is_identifier=True,
|
||||||
source=Index
|
is_sortable=True, source=Index
|
||||||
|
)
|
||||||
|
SourceColumn(
|
||||||
|
attribute='label', is_object_absolute_url=True, is_identifier=True,
|
||||||
|
is_sortable=True, source=IndexInstance
|
||||||
)
|
)
|
||||||
SourceColumn(
|
SourceColumn(
|
||||||
attribute='slug', exclude=(IndexInstance,), is_sortable=True,
|
attribute='slug', exclude=(IndexInstance,), is_sortable=True,
|
||||||
|
|||||||
@@ -309,6 +309,7 @@ class IndexListView(SingleObjectListView):
|
|||||||
def get_extra_context(self):
|
def get_extra_context(self):
|
||||||
return {
|
return {
|
||||||
'hide_links': True,
|
'hide_links': True,
|
||||||
|
'hide_object': True,
|
||||||
'no_results_icon': icon_index,
|
'no_results_icon': icon_index,
|
||||||
'no_results_main_link': link_index_template_create.resolve(
|
'no_results_main_link': link_index_template_create.resolve(
|
||||||
context=RequestContext(request=self.request)
|
context=RequestContext(request=self.request)
|
||||||
|
|||||||
Reference in New Issue
Block a user