Fix category budget toggle
This commit is contained in:
parent
07bb604eda
commit
91dcd0962e
2 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@ class HistoryView(UserMixin, MultipleObjectMixin, View):
|
|||
{
|
||||
"data": list(
|
||||
self.get_queryset()
|
||||
.filter(category__budget=True)
|
||||
.values(month=TruncMonth("date"))
|
||||
.annotate(
|
||||
sum_p=Sum(
|
||||
|
|
|
@ -28,6 +28,7 @@ class CategoryForm(NummiForm):
|
|||
fields = [
|
||||
"name",
|
||||
"icon",
|
||||
"budget",
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue