Remove hardcode
This commit is contained in:
parent
f8ba89c193
commit
9cdf4593cf
1 changed files with 0 additions and 8 deletions
|
|
@ -203,10 +203,6 @@ class IndexView(CreateView):
|
||||||
)
|
)
|
||||||
if request.user.id == 51:
|
if request.user.id == 51:
|
||||||
print("User is test")
|
print("User is test")
|
||||||
price = 0
|
|
||||||
vat = 0
|
|
||||||
vat_percent = 0
|
|
||||||
discount = 0
|
|
||||||
specs = {
|
specs = {
|
||||||
'cpu': cores,
|
'cpu': cores,
|
||||||
'memory': memory,
|
'memory': memory,
|
||||||
|
|
@ -658,10 +654,6 @@ class OrderConfirmationView(DetailView, FormView):
|
||||||
)
|
)
|
||||||
if request.user.id == 51:
|
if request.user.id == 51:
|
||||||
print("User is test")
|
print("User is test")
|
||||||
price = 0
|
|
||||||
vat = 0
|
|
||||||
vat_percent = 0
|
|
||||||
discount = {"amount": 0}
|
|
||||||
vm_specs["price"] = price
|
vm_specs["price"] = price
|
||||||
vm_specs["price_after_discount"] = price - discount["amount"]
|
vm_specs["price_after_discount"] = price - discount["amount"]
|
||||||
amount_to_charge = price
|
amount_to_charge = price
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue