diff --git a/pandora/item/models.py b/pandora/item/models.py index ea27a3293..9f2c43365 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -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