From 185cf1cc7b7d5ac5b0057014b3b62a97353b5f99 Mon Sep 17 00:00:00 2001 From: Pawan Verma Date: Thu, 5 Oct 2023 17:01:48 +0530 Subject: [PATCH] Rename extra to over_limit --- commcare_connect/opportunity/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/commcare_connect/opportunity/models.py b/commcare_connect/opportunity/models.py index dd0daf46..e26d7872 100644 --- a/commcare_connect/opportunity/models.py +++ b/commcare_connect/opportunity/models.py @@ -81,7 +81,9 @@ def claimed_budget(self): @property def utilised_budget(self): - user_visits = UserVisit.objects.filter(opportunity=self).exclude(status=VisitValidationStatus.extra).count() + user_visits = ( + UserVisit.objects.filter(opportunity=self).exclude(status=VisitValidationStatus.over_limit).count() + ) return user_visits @@ -199,7 +201,7 @@ class VisitValidationStatus(models.TextChoices): pending = "pending", gettext("Pending") approved = "approved", gettext("Approved") rejected = "rejected", gettext("Rejected") - extra = "extra", gettext("Extra") + over_limit = "over_limit", gettext("Over Limit") class Payment(models.Model):