* 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:
mpeltriaux committed 2021-10-28 17:21:07 +02:00
1 parent b5fc96c1cf
commit 107cbeadee
3 files changed
+5 -6

No files matched your search

+3 -1
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",