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:
parent
1b6807baf3
commit
0a6d9ce827
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user