remove slug from offerings

This commit is contained in:
Tobias Brunner 2025-02-28 14:25:35 +01:00
parent 20f27bd6b5
commit 03b5af8244
No known key found for this signature in database
8 changed files with 55 additions and 12 deletions

View file

@ -39,7 +39,11 @@ def create_lead(request, slug):
f"{reverse('services:create_lead', kwargs={'slug': service.slug})}?offering={selected_offering.id}&plan={selected_offering.plans.first().id}"
)
# If there are multiple plans, redirect to offering detail
return redirect("services:offering_detail", slug=selected_offering.slug)
return redirect(
"services:offering_detail",
provider_slug=selected_offering.cloud_provider.slug,
service_slug=selected_offering.service.slug,
)
# Get the selected plan
selected_plan = get_object_or_404(