forked from 0x2620/pandora
value might not be a string
This commit is contained in:
parent
66c3561328
commit
4a45ae0016
1 changed files with 1 additions and 1 deletions
|
@ -1030,7 +1030,7 @@ class Item(models.Model):
|
|||
value = self.get(source)
|
||||
set_value(s, name, value)
|
||||
elif sort_type == 'date':
|
||||
value = self.get(source)
|
||||
value = value_ = self.get(source)
|
||||
if isinstance(value, string_types):
|
||||
value_ = None
|
||||
for fmt in ('%Y-%m-%d', '%Y-%m', '%Y'):
|
||||
|
|
Loading…
Reference in a new issue