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
(cherry picked from commit bfd66305ce
)
This commit is contained in:
parent
0de7665e14
commit
0712ed3b8c
|
@ -265,7 +265,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