current values

This commit is contained in:
j 2011-08-26 16:45:04 +02:00
parent 1f2a5d1c62
commit e35c178718

View file

@ -660,7 +660,10 @@ class Item(models.Model):
for key in self.facet_keys + ['title']: for key in self.facet_keys + ['title']:
current_values = self.get(key, []) current_values = self.get(key, [])
if key == 'title': if key == 'title':
if current_values:
current_values = [current_values] current_values = [current_values]
else:
current_values = []
ot = self.get('original_title') ot = self.get('original_title')
if ot: if ot:
current_values.append(ot) current_values.append(ot)