summaryrefslogtreecommitdiffstats
path: root/engagements/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'engagements/views.py')
-rw-r--r--engagements/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/engagements/views.py b/engagements/views.py
index 86f886d..6d7d4c9 100644
--- a/engagements/views.py
+++ b/engagements/views.py
@@ -84,7 +84,7 @@ def engagement_detail(request, pk):
@login_required
def engagement_plan_for(request, orgslug):
org = Organisation.objects.get(slug=orgslug)
- engagements = Engagement.objects.filter(external_party=org)
+ engagements = Engagement.objects.filter(external_party=org).order_by("-proposed_start_date")
dscs = SubInstrument.objects.filter(itype="DSC").filter(effort__engagement__external_party=org).distinct()
context = {"entity": org, "engagements": engagements, "dscs": dscs}
return render(request, "engagements/ep_org.html", context)