Skip to content
Snippets Groups Projects
Commit c7c07cb0 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Remove active applications from the history list

parent 61ee4718
No related branches found
No related tags found
No related merge requests found
......@@ -19,10 +19,10 @@ class ApplicantDashboardView(SingleTableView):
table_class = SubmissionsTable
def get_queryset(self):
return self.model.objects.filter(user=self.request.user)
return self.model.objects.filter(user=self.request.user).inactive()
def get_context_data(self, **kwargs):
my_active_submissions = self.object_list.active()
my_active_submissions = self.model.objects.filter(user=self.request.user).active()
return super().get_context_data(
my_active_submissions=my_active_submissions,
......
......@@ -446,6 +446,9 @@ class ApplicationSubmissionQueryset(JSONOrderable):
def active(self):
return self.filter(status__in=active_statuses)
def inactive(self):
return self.exclude(status__in=active_statuses)
class ApplicationSubmission(WorkflowHelpers, AbstractFormSubmission):
field_template = 'funds/includes/submission_field.html'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment