forked from 0x2620/pandora
don't fail for int
This commit is contained in:
parent
55b86bdac8
commit
708a5b1b33
1 changed files with 2 additions and 0 deletions
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue