#19 Tests
* 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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user