* fixes bug where compensations still appeared on the public report despite being marked as deleted
* fixes bug where eco account could be deducted into a negative account balance
This commit is contained in:
2021-10-28 17:21:07 +02:00
parent 30e5239c49
commit 9ffd1b4482
3 changed files with 5 additions and 6 deletions

View File

@@ -35,7 +35,9 @@ class CompensationManager(models.Manager):
"""
def get_queryset(self):
return super().get_queryset().select_related(
return super().get_queryset().filter(
deleted__isnull=True,
).select_related(
"modified",
"intervention",
"intervention__recorded",