protect pricelist with authentication

This commit is contained in:
Tobias Brunner 2025-05-26 15:03:39 +02:00
parent a64163cad0
commit 57fd001246
No known key found for this signature in database

View file

@ -2,6 +2,7 @@ from django.shortcuts import render
import re
from collections import defaultdict
from hub.services.models import ComputePlan, VSHNAppCatPrice
from django.contrib.admin.views.decorators import staff_member_required
def natural_sort_key(name):
@ -10,6 +11,7 @@ def natural_sort_key(name):
return int(match.group(1)) if match else 0
@staff_member_required
def pricelist(request):
"""Generate comprehensive price list grouped by compute plan groups and service levels"""
# Check if discount details should be shown