Fixed bugs 2 #15

Merged
jkuijperm merged 13 commits from dev into main 2026-07-24 09:38:43 +00:00
Showing only changes of commit c29ed0d8ae - Show all commits

View File

@ -317,7 +317,7 @@ def dashboard(request):
category_count = expenses_filtered.values("category").distinct().count() category_count = expenses_filtered.values("category").distinct().count()
# Total by category # Total by category
by_category_qs = ( by_category_qs = by_category = (
expenses_filtered.values("category__name") expenses_filtered.values("category__name")
.annotate(total=Sum("amount")) .annotate(total=Sum("amount"))
.order_by("-total") .order_by("-total")