-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add claimed_budget and utilised_budget to model and ui #149
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing blocking, but I think there is a redundant clause in one of the queries
@property | ||
def approved_visits(self): | ||
approved_user_visits = ( | ||
UserVisit.objects.filter(opportunity=self, status=VisitValidationStatus.approved) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is redundant. It counts only approved
visits and excludes over_limit
, but since a visit can't be both, we don't need the exclude
statement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed. 76ef45b
Ticket1
Ticket2