From 708a5b1b33e6f229dd16999dcd22fc39b7d528fc Mon Sep 17 00:00:00 2001 From: j Date: Tue, 4 Dec 2018 19:14:24 +0100 Subject: [PATCH] don't fail for int --- pandora/document/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/document/models.py b/pandora/document/models.py index 1a824734..268302b5 100644 --- a/pandora/document/models.py +++ b/pandora/document/models.py @@ -235,6 +235,8 @@ class Document(models.Model): value = self.get_value(source, u'') if isinstance(value, list): value = u','.join(value) + if not isinstance(value, str): + value = str(value) value = utils.sort_string(value)[:955] set_value(s, name, value) elif sort_type == 'words':