From ae556c62f0a31d092b30858811c8c654e1bfaf0c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 26 Dec 2011 20:21:20 +0100 Subject: [PATCH] only add if not exists already --- pandora/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index a9ce4174f..47bf5d392 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -747,7 +747,7 @@ class Item(models.Model): for value in current_values: if value not in saved_values: sortvalue = value - Facet.objects.get_or_create(item=self, key=key, value=value, sortvalue=sortvalue) + Facet.objects.get_or_create(item=self, key=key, value=value, sortvalue=sortvalue) def update_facets(self): for key in self.facet_keys + ['title']: