From f124c1b2e17b63d0002a2ba9bc5be3d847694f23 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 26 Aug 2011 16:45:04 +0200 Subject: [PATCH] current values --- pandora/item/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index a9f438a7d..3edaa86e2 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -660,7 +660,10 @@ class Item(models.Model): for key in self.facet_keys + ['title']: current_values = self.get(key, []) if key == 'title': - current_values = [current_values] + if current_values: + current_values = [current_values] + else: + current_values = [] ot = self.get('original_title') if ot: current_values.append(ot)