Skip to content

Commit

Permalink
Fix: #3762 Update filter arguments for cancelled_subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
speedyFixer committed Apr 25, 2019
1 parent c138f42 commit 1907180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/grants/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def grant_details(request, grant_id, grant_slug):
milestones = grant.milestones.order_by('due_date')
updates = grant.updates.order_by('-created_on')
subscriptions = grant.subscriptions.filter(active=True, error=False)
cancelled_subscriptions = grant.subscriptions.filter(Q(active=False, error=False) | Q(error=True))
cancelled_subscriptions = grant.subscriptions.filter(active=False, error=False)
contributions = Contribution.objects.filter(subscription__in=grant.subscriptions.all())
user_subscription = grant.subscriptions.filter(contributor_profile=profile, active=True).first()
user_non_errored_subscription = grant.subscriptions.filter(contributor_profile=profile, active=True, error=False).first()
Expand Down

0 comments on commit 1907180

Please sign in to comment.