complete rework of offerings

This commit is contained in:
Tobias Brunner 2025-02-28 14:13:51 +01:00
parent 84e25c82d1
commit 20f27bd6b5
No known key found for this signature in database
16 changed files with 313 additions and 294 deletions

View file

@ -11,9 +11,6 @@ def offering_list(request):
.prefetch_related(
"service__categories",
"plans",
"plans__prices",
"plans__prices__currency",
"plans__prices__term",
)
)
@ -62,9 +59,7 @@ def offering_detail(request, slug):
offering = get_object_or_404(
ServiceOffering.objects.select_related(
"service", "cloud_provider"
).prefetch_related(
"plans", "plans__prices", "plans__prices__currency", "plans__prices__term"
),
).prefetch_related("plans"),
slug=slug,
)