Properly sort Heat stacks on Created field

replace the 'timesince_or_never' filter with 'timesince_sorted' one as the
creation_time attribute of a Heat stack can not actually be None.
Also add a 'timesince' data-type to this field.

Change-Id: I9727254b4c255331562083f957133ed6e3cd7e90
Closes-Bug: #1713748
This commit is contained in:
Pavlo Shchelokovskyy 2017-08-29 15:08:34 +00:00
parent c3f6ee141b
commit bfd66305ce
1 changed files with 2 additions and 1 deletions

View File

@ -278,7 +278,8 @@ class StacksTable(tables.DataTable):
created = tables.Column("creation_time",
verbose_name=_("Created"),
filters=(filters.parse_isotime,
filters.timesince_or_never))
filters.timesince_sortable),
attrs={'data-type': 'timesince'})
updated = tables.Column("updated_time",
verbose_name=_("Updated"),
filters=(filters.parse_isotime,