Fixed bug
This commit is contained in:
parent
e1b4a6eef7
commit
c29ed0d8ae
@ -317,7 +317,7 @@ def dashboard(request):
|
||||
category_count = expenses_filtered.values("category").distinct().count()
|
||||
|
||||
# Total by category
|
||||
by_category_qs = (
|
||||
by_category_qs = by_category = (
|
||||
expenses_filtered.values("category__name")
|
||||
.annotate(total=Sum("amount"))
|
||||
.order_by("-total")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user