diff --git a/models/widgets.py b/models/widgets.py index 723fd7e2c6de9b4c9380314e1101fdec1c4ad4af..8017f88597648feac877c6f40ae4e2fff690f812 100755 --- a/models/widgets.py +++ b/models/widgets.py @@ -164,6 +164,9 @@ gridModifier.merge_columns('title', gridModifier.hide_columns('authors_cppm', 'e_print') + +gridModifier.set_rownumbering() + # # Setup a filter panel for the publication grid # diff --git a/modules/plugin_dbui/cvtsvc.py b/modules/plugin_dbui/cvtsvc.py index 6b78fdaf5eefbb030981c35bcaa2a083cb66ca46..532b6fa7d32760fc231d9db89fa1bc1eb025693d 100644 --- a/modules/plugin_dbui/cvtsvc.py +++ b/modules/plugin_dbui/cvtsvc.py @@ -117,10 +117,6 @@ class CvtSvc(BaseSvc): delete_columns = grid_modifiers[tablename].delete_columns template_columns = grid_modifiers[tablename].template_columns - # row numbering in the first colum, - if grid_modifiers[tablename].row_numbering: - models.append({'xtype': 'rownumberer'}) - # standard column for field in table: fieldname = field.name @@ -135,6 +131,11 @@ class CvtSvc(BaseSvc): col = {'xtype': 'templatecolumn', 'sortable': True} col.update(tpl.extjs) models.insert(tpl.position, col) + + # row numbering in the first column + if grid_modifiers[tablename].row_numbering: + models.insert(0, {'xtype': 'rownumberer'}) + return models