Correctly update order total
This commit is contained in:
1 parent
ea7174815b
commit
9641b66346
2 files changed
+21
-5
No files matched your search
+1
-1
@@ -73,7 +73,7 @@ def register(request):
|
||||
int(order_sum - profile.balance)))
|
||||
return HttpResponseRedirect(reverse('main.views.register'))
|
||||
# substract order from balance
|
||||
profile.balance -= order.order_sum
|
||||
profile.balance -= order_sum
|
||||
profile.save()
|
||||
|
||||
order.order_sum = order_sum
|
||||
|
||||
Reference in new issue
Block a user