From f34bdd66310df49d3515acb4117dca7b1ca81968 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 3 Feb 2014 09:24:24 +0000 Subject: [PATCH] add sorting by type=time item keys, fixes #2136 --- pandora/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 543500fd..4b4cc87a 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -842,7 +842,7 @@ class Item(models.Model): value = u','.join(value) value = utils.sort_string(value)[:955] set_value(s, name, value) - elif sort_type in ('length', 'integer', 'float'): + elif sort_type in ('length', 'integer', 'time', 'float'): #can be length of strings or length of arrays, i.e. keywords value = self.get(source) if isinstance(value, list):