The horizon.utils.filters ModuleΒΆ
-
horizon.utils.filters.parse_isotime(timestr, default=None)[source] This duplicates oslo timeutils parse_isotime but with a @register.filter annotation and a silent fallback on error.
-
horizon.utils.filters.replace_underscores(string)[source]
-
horizon.utils.filters.timesince_or_never(dt, default=None)[source] Call the Django
timesincefilter, but return the string default if dt is not a validdateordatetimeobject. When default is None, “Never” is returned.
-
horizon.utils.filters.timesince_sortable(dt)[source]