Skip to content

Commit

Permalink
Rename extra to over_limit
Browse files Browse the repository at this point in the history
  • Loading branch information
pxwxnvermx committed Oct 5, 2023
1 parent f68d309 commit 185cf1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions commcare_connect/opportunity/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 185cf1c

Please sign in to comment.