allow to disable listing

This commit is contained in:
Tobias Brunner 2025-03-03 11:34:27 +01:00
parent 42050d069b
commit 25b91fb01b
No known key found for this signature in database
6 changed files with 44 additions and 4 deletions

View file

@ -5,7 +5,7 @@ from hub.services.models import ServiceOffering, CloudProvider, Category, Servic
def offering_list(request):
offerings = (
ServiceOffering.objects.all()
ServiceOffering.objects.filter(disable_listing=False)
.order_by("service")
.select_related("service", "cloud_provider")
.prefetch_related(