Remove useless db operation
This commit is contained in:
parent
c083fff07e
commit
cb253d4305
1 changed files with 0 additions and 1 deletions
|
@ -152,7 +152,6 @@ class Snapshot(AccountModel):
|
|||
trans.save()
|
||||
|
||||
self.diff = self.value - self.start_value
|
||||
self.sum = self.transaction_set.aggregate(sum=models.Sum("value")).get("sum", 0)
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
def update_sum(self):
|
||||
|
|
Loading…
Reference in a new issue