From 9924adca33d58620da92d28faa5ee634aaef1595 Mon Sep 17 00:00:00 2001 From: fershad <27988517+fershad@users.noreply.github.com> Date: Fri, 23 Aug 2024 16:46:14 +0800 Subject: [PATCH] ignore archived providers --- apps/greencheck/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/greencheck/views.py b/apps/greencheck/views.py index b88d6e71..42f0a816 100644 --- a/apps/greencheck/views.py +++ b/apps/greencheck/views.py @@ -248,7 +248,10 @@ def get_context_data(self, *args, **kwargs): of providers """ - queryset = Hostingprovider.objects.filter(showonwebsite=True).prefetch_related( + queryset = Hostingprovider.objects.filter( + showonwebsite=True, + archived=False + ).prefetch_related( "services" )