From 892ad926df1f585b1fd57f3f0eaa9199bc4c9abb Mon Sep 17 00:00:00 2001 From: rachidatecs Date: Mon, 21 Aug 2023 12:22:56 -0400 Subject: [PATCH] Add comment explaining why we're excluding approved applications --- src/registrar/views/index.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/registrar/views/index.py b/src/registrar/views/index.py index 876983c4e..273ba8cb0 100644 --- a/src/registrar/views/index.py +++ b/src/registrar/views/index.py @@ -9,6 +9,9 @@ def index(request): context = {} if request.user.is_authenticated: applications = DomainApplication.objects.filter(creator=request.user) + # Let's exclude the approved applications since our + # domain_applications context will be used to populate + # the active applications table context["domain_applications"] = applications.exclude(status="approved") domains = request.user.permissions.values(