fix facets

This commit is contained in:
j 2011-10-25 00:03:09 +02:00
parent c6093f9cdf
commit 3db4b37cd6

View file

@ -721,9 +721,7 @@ class Item(models.Model):
value_sort = value
if key in self.person_keys:
value_sort = get_name_sort(value)
f = Facet(key=key, value=value, value_sort=value_sort)
f.item = self
f.save()
Facet.objects.get_or_create(item=self, key=key, value=value, value_sort=value_sort)
def path(self, name=''):
h = self.itemId