From 7d8b38e627aa689457179a72b3a9c498d43128c7 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 5 Feb 2021 10:07:14 +0100 Subject: [PATCH] cast list values to str, just in case --- 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 1733e8968..5172990c3 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -1022,7 +1022,7 @@ class Item(models.Model): elif sort_type == 'string': value = self.get(source, '') if isinstance(value, list): - value = ','.join(value) + value = ','.join([str(v) for v in value]) value = utils.sort_string(value)[:955] set_value(s, name, value) elif sort_type == 'words':