Move code to calculate an index descendant node instances to the model, catch exception when index is still not initialized, possible cause of issue #28

This commit is contained in:
Roberto Rosario
2012-10-07 04:19:16 -04:00
parent 8b52c4a99a
commit aa2e32e801
2 changed files with 7 additions and 1 deletions

View File

@@ -310,7 +310,7 @@ def index_list(request):
'title': _(u'indexes'),
'hide_links': True,
'extra_columns': [
{'name': _(u'nodes'), 'attribute': encapsulate(lambda x: x.instance_root.get_descendant_count())},
{'name': _(u'nodes'), 'attribute': 'get_instance_node_count'},
{'name': _(u'document types'), 'attribute': 'get_document_types_names'},
],
}