Change column order for Orchestration Services table

The `Last Updated` and `State` column are not consistent with other
tables in system information, change order to make it consistent.

Change-Id: If21aed35afe9dc56754f4b1e7bbd57bbda9369f5
Closes-bug: #1520510
This commit is contained in:
liyingjun 2015-11-28 01:24:42 +08:00
parent 1b6807baf3
commit 0a6d9ce827

View File

@ -208,14 +208,16 @@ class HeatServiceTable(tables.DataTable):
engine_id = tables.Column('engine_id', verbose_name=_('Engine Id'))
host = tables.Column('host', verbose_name=_('Host'))
topic = tables.Column('topic', verbose_name=_('Topic'))
# For consistent with other tables in system info, set column name to
# 'state'
state = tables.Column('status', verbose_name=_('State'),
display_choices=SERVICE_STATE_DISPLAY_CHOICES)
updated_at = tables.Column('updated_at',
verbose_name=pgettext_lazy(
'Time since the last update',
u'Last Updated'),
filters=(utils_filters.parse_isotime,
filters.timesince))
status = tables.Column('status', verbose_name=_('Status'),
display_choices=SERVICE_STATE_DISPLAY_CHOICES)
def get_object_id(self, obj):
return "%s" % obj.engine_id