diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-15 14:50:52 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-15 14:50:52 +0100 |
commit | 3c724c0a25a8cfa34befbbb88bff1236cc88ec20 (patch) | |
tree | db4f131fb2b3366da19f0d92c6f72749da960db6 /engagements/views.py | |
parent | a47f71efc9a7643be548f7f805e162a1942d3db4 (diff) |
Cleaned up the EP table for an org
Diffstat (limited to 'engagements/views.py')
-rw-r--r-- | engagements/views.py | 2 |
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) |