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:
parent
c3f6ee141b
commit
bfd66305ce
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user