not for all apps
@@ -922,7 +922,11 @@ class EvaluateApplicationView(NotDeleted, CoordinatorOrSelf, ToURequired, Update
form.fields["status"].choices = status_choices
total_accounts_available_for_distribution = get_accounts_available(app)
- if total_accounts_available_for_distribution is not None and app.editor.user == self.request.user:
+ if (
+ total_accounts_available_for_distribution is not None
+ and app.editor.user == self.request.user
+ and app.status in [Application.PENDING, Application.QUESTION]
+ ):
total_pending_apps = Application.objects.filter(
partner=app.partner,
status__in=[Application.PENDING, Application.QUESTION]
@@ -931,7 +935,6 @@ class EvaluateApplicationView(NotDeleted, CoordinatorOrSelf, ToURequired, Update
total_pending_apps = total_pending_apps.filter(
specific_stream=app.specific_stream
)
-
if (
total_accounts_available_for_distribution -
total_pending_apps.count() < 0
