current values

This commit is contained in:
j 2011-08-26 16:45:04 +02:00
parent 1f2a5d1c62
commit e35c178718
1 changed files with 4 additions and 1 deletions

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)