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