diff --git a/pandora/document/models.py b/pandora/document/models.py index 1e8ae8377..1bb1dab13 100644 --- a/pandora/document/models.py +++ b/pandora/document/models.py @@ -84,6 +84,7 @@ class Document(models.Model): p.index = ItemProperties.objects.filter(item=item).aggregate(Max('index'))['index__max'] + 1 p.save() p.document.update_matches() + item.update_sort() def remove(self, item): ItemProperties.objects.filter(item=item, document=self).delete()