diff --git a/nummi/main/views.py b/nummi/main/views.py index a95c403..2806b42 100644 --- a/nummi/main/views.py +++ b/nummi/main/views.py @@ -263,8 +263,8 @@ class SnapshotUpdateView(NummiUpdateView): "data": _categories, "max": max( _categories.aggregate( - max=models.Max("sum_p"), - min=models.Min("sum_m"), + max=models.Max("sum_p", default=0), + min=models.Min("sum_m", default=0), ).values(), ), }