Skip to content

Commit

Permalink
ignore archived providers
Browse files Browse the repository at this point in the history
  • Loading branch information
fershad committed Sep 1, 2024
1 parent 2dfa3ea commit 5a57832
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/greencheck/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down

0 comments on commit 5a57832

Please sign in to comment.