From 395aeade87900cc3dcb02b27c64e24094c827538 Mon Sep 17 00:00:00 2001
From: Wes Appler <145372368+wes-otf@users.noreply.github.com>
Date: Wed, 17 Apr 2024 10:02:03 -0400
Subject: [PATCH] Changed order of `Past Submissions` in the detailed
 submission view (#3876)

Fixes #3875.

Switches order to date submitted in `Related Submission`'s
`Past Submissions`
---
 hypha/apply/funds/views.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hypha/apply/funds/views.py b/hypha/apply/funds/views.py
index c98626664..0b60e99d2 100644
--- a/hypha/apply/funds/views.py
+++ b/hypha/apply/funds/views.py
@@ -1117,6 +1117,7 @@ class AdminSubmissionDetailView(ActivityContextMixin, DelegateableView, DetailVi
             self.model.objects.filter(user=self.object.user)
             .current()
             .exclude(id=self.object.id)
+            .order_by("-submit_time")
         )
         if self.object.next:
             other_submissions = other_submissions.exclude(id=self.object.next.id)
-- 
GitLab