From 3c724c0a25a8cfa34befbbb88bff1236cc88ec20 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 15 Oct 2024 14:50:52 +0100 Subject: Cleaned up the EP table for an org --- engagements/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engagements/views.py') 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) -- cgit v1.2.3