Do not take budget into account for history view on account page
This commit is contained in:
parent
a21f655f18
commit
9b05d41eec
1 changed files with 1 additions and 2 deletions
|
@ -195,8 +195,7 @@ class AccountUpdateView(NummiUpdateView):
|
|||
)
|
||||
|
||||
_history = (
|
||||
account.transaction_set.filter(category__budget=True)
|
||||
.values(month=models.functions.TruncMonth("date"))
|
||||
account.transaction_set.values(month=models.functions.TruncMonth("date"))
|
||||
.annotate(
|
||||
sum_p=models.Sum("value", filter=models.Q(value__gt=0)),
|
||||
sum_m=models.Sum("value", filter=models.Q(value__lt=0)),
|
||||
|
|
Loading…
Reference in a new issue