style partner detail

This commit is contained in:
Tobias Brunner 2025-02-25 13:43:28 +01:00
parent fc06226f5a
commit 869ec8bb8e
No known key found for this signature in database
4 changed files with 87 additions and 59 deletions

View file

@ -18,7 +18,7 @@ def offering_list(request):
cloud_providers = CloudProvider.objects.all()
categories = Category.objects.filter(parent=None).prefetch_related("children")
services = Service.objects.all().order_by("name") # Add this line
services = Service.objects.all().order_by("name")
# Handle cloud provider filter
if request.GET.get("cloud_provider"):
@ -34,7 +34,7 @@ def offering_list(request):
Q(service__categories=category) | Q(service__categories__in=subcategories)
).distinct()
# Add service filter handling
# Handle service filter
if request.GET.get("service"):
service_id = request.GET.get("service")
offerings = offerings.filter(service_id=service_id)