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(
|
"data": list(
|
||||||
self.get_queryset()
|
self.get_queryset()
|
||||||
|
.filter(category__budget=True)
|
||||||
.values(month=TruncMonth("date"))
|
.values(month=TruncMonth("date"))
|
||||||
.annotate(
|
.annotate(
|
||||||
sum_p=Sum(
|
sum_p=Sum(
|
||||||
|
|
|
@ -28,6 +28,7 @@ class CategoryForm(NummiForm):
|
||||||
fields = [
|
fields = [
|
||||||
"name",
|
"name",
|
||||||
"icon",
|
"icon",
|
||||||
|
"budget",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue