Correctly update order total

This commit is contained in:
nikolark committed 2014-10-06 13:33:23 +02:00
1 parent ea7174815b
commit 9641b66346
2 files changed
+21 -5

No files matched your search

+1 -1
View File
@@ -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