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

@ -55,12 +55,13 @@ def offering_list(request):
return render(request, "services/offering_list.html", context)
def offering_detail(request, slug):
def offering_detail(request, provider_slug, service_slug):
offering = get_object_or_404(
ServiceOffering.objects.select_related(
"service", "cloud_provider"
).prefetch_related("plans"),
slug=slug,
cloud_provider__slug=provider_slug,
service__slug=service_slug,
)
context = {