In category_plot templatetag, replace filter budget with exclude not budget

This commit is contained in:
Edgar P. Burkhart 2023-05-03 12:56:00 +02:00
parent eabdaf2516
commit a5dd41b533
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -8,7 +8,7 @@ register = template.Library()
@register.inclusion_tag("category/category_plot.html")
def category_plot(transactions, **kwargs):
categories = (
transactions.filter(category__budget=True)
transactions.exclude(category__budget=False)
.values("category", "category__name", "category__icon")
.annotate(
sum=models.Sum("value"),