fix
This commit is contained in:
parent
bf75f6bddb
commit
6a32ed6ffd
@ -125,14 +125,12 @@ def register_racer(request):
|
|||||||
|
|
||||||
product.quantity -= 1
|
product.quantity -= 1
|
||||||
product.save()
|
product.save()
|
||||||
|
|
||||||
invoice = Invoice(
|
invoice = Invoice(
|
||||||
invoice_id=invoice_id,
|
invoice_id=invoice_id,
|
||||||
user=user,
|
user=user,
|
||||||
total_price=price,
|
total_price=price,
|
||||||
address=profile.address,
|
address=profile.address,
|
||||||
)
|
)
|
||||||
racer.save()
|
|
||||||
racer = Racer(
|
racer = Racer(
|
||||||
product=product,
|
product=product,
|
||||||
invoice=invoice,
|
invoice=invoice,
|
||||||
@ -147,8 +145,9 @@ def register_racer(request):
|
|||||||
alkator_class = ALKATOR_CLASS,
|
alkator_class = ALKATOR_CLASS,
|
||||||
price=price,
|
price=price,
|
||||||
)
|
)
|
||||||
invoice.items.set([racer])
|
|
||||||
invoice.save()
|
invoice.save()
|
||||||
|
racer.save()
|
||||||
|
invoice.items.set([racer])
|
||||||
|
|
||||||
payment_data = {
|
payment_data = {
|
||||||
'merchant': COMGATE_MERCHANT,
|
'merchant': COMGATE_MERCHANT,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user