diff --git a/pandora/item/models.py b/pandora/item/models.py index f625fb80c..ba98cb1e5 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -1047,7 +1047,7 @@ class Item(models.Model): value = len(value) set_value(s, name, value) elif sort_type == 'year': - value = self.get(source) + value = self.get(source)[:4] set_value(s, name, value) elif sort_type == 'date': value = value_ = self.get(source)