Fix no-income / no-expense snapshots
This commit is contained in:
parent
ae39b4870b
commit
51d57564c4
1 changed files with 2 additions and 2 deletions
|
@ -263,8 +263,8 @@ class SnapshotUpdateView(NummiUpdateView):
|
||||||
"data": _categories,
|
"data": _categories,
|
||||||
"max": max(
|
"max": max(
|
||||||
_categories.aggregate(
|
_categories.aggregate(
|
||||||
max=models.Max("sum_p"),
|
max=models.Max("sum_p", default=0),
|
||||||
min=models.Min("sum_m"),
|
min=models.Min("sum_m", default=0),
|
||||||
).values(),
|
).values(),
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue