only add if not exists already
This commit is contained in:
parent
3cd321a116
commit
ae556c62f0
1 changed files with 1 additions and 1 deletions
|
@ -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']:
|
||||
|
|
Loading…
Reference in a new issue