update item sort after adding document to item, fixes #2153
This commit is contained in:
parent
831d3a68f7
commit
3c1d3bbcb2
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue