SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit fd8fbdaf authored by George Katsikas's avatar George Katsikas :goat:
Browse files

change subsidy obtained filter to include all statuses

parent 0a5745df
No related branches found
No related tags found
No related merge requests found
......@@ -4,14 +4,12 @@ __license__ = "AGPL v3"
from django.db import models
from .constants import SUBSIDY_PROMISED, SUBSIDY_INVOICED, SUBSIDY_RECEIVED
from .constants import SUBSIDY_WITHDRAWN
class SubsidyQuerySet(models.QuerySet):
def obtained(self):
return self.filter(
status__in=[SUBSIDY_PROMISED, SUBSIDY_INVOICED, SUBSIDY_RECEIVED],
)
return self.exclude(status=SUBSIDY_WITHDRAWN)
class SubsidyPaymentQuerySet(models.QuerySet):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment