diff --git a/nummi/main/views.py b/nummi/main/views.py index a6cb1ca..dd4a2a5 100644 --- a/nummi/main/views.py +++ b/nummi/main/views.py @@ -166,9 +166,8 @@ def snapshot(request, uuid=None): if _snapshot.transactions: context["categories"] = ( - _snapshot.transactions.values( - "category", "category__name", "category__icon" - ) + _snapshot.transactions.filter(category__budget=True) + .values("category", "category__name", "category__icon") .annotate( sum=models.Sum("value"), sum_m=models.Sum("value", filter=models.Q(value__lt=0)),