remove slug from offerings
This commit is contained in:
parent
20f27bd6b5
commit
03b5af8244
8 changed files with 55 additions and 12 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue