From fbca67ef66b394c388190f469ee4492fda4bf96a Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 20 Jun 2025 15:48:04 +0200 Subject: [PATCH] remove all provider and all service option from pricelist --- hub/services/templates/services/pricelist.html | 10 ++-------- hub/services/views/pricelist.py | 6 ++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hub/services/templates/services/pricelist.html b/hub/services/templates/services/pricelist.html index f01109a..08cf877 100644 --- a/hub/services/templates/services/pricelist.html +++ b/hub/services/templates/services/pricelist.html @@ -228,22 +228,16 @@
diff --git a/hub/services/views/pricelist.py b/hub/services/views/pricelist.py index d2586a1..add5b22 100644 --- a/hub/services/views/pricelist.py +++ b/hub/services/views/pricelist.py @@ -544,6 +544,12 @@ def pricelist(request): all_compute_plan_groups.append("No Group") # Add option for plans without groups all_service_levels = [choice[1] for choice in VSHNAppCatPrice.ServiceLevel.choices] + # If no filter is specified, select the first available provider/service by default + if not filter_cloud_provider and all_cloud_providers: + filter_cloud_provider = all_cloud_providers[0] + if not filter_service and all_services: + filter_service = all_services[0] + context = { "pricing_data_by_group_and_service_level": final_context_data, "show_discount_details": show_discount_details,