diff --git a/pandora/person/models.py b/pandora/person/models.py index 7cf9c58ab..9055fb299 100644 --- a/pandora/person/models.py +++ b/pandora/person/models.py @@ -53,7 +53,6 @@ class Person(models.Model): self.sortsortname = utils.sort_string(self.sortname) self.numberofnames = len(self.name.split(' ')) super(Person, self).save(*args, **kwargs) - tasks.update_itemsort.delay(self.id) def update_itemsort(self): item.models.Facet.objects.filter( diff --git a/pandora/person/views.py b/pandora/person/views.py index e91fedc25..044468e69 100644 --- a/pandora/person/views.py +++ b/pandora/person/views.py @@ -37,6 +37,7 @@ def editName(request, data): person.sortname = data['sortname'] person.edited = True person.save() + tasks.update_itemsort.delay(person.id) tasks.update_file_paths.delay(person.id) add_changelog(request, data) response['data'] = person.json()