current values

This commit is contained in:
j 2011-08-26 16:45:04 +02:00
parent fde89554cc
commit f124c1b2e1

View file

@ -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)