protect pricelist with authentication
This commit is contained in:
parent
a64163cad0
commit
57fd001246
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue