forked from uncloud/uncloud
Consistently use one_time_price instead of setup_fee
This commit is contained in:
parent
a40da40169
commit
11e22f5001
6 changed files with 39 additions and 19 deletions
|
|
@ -49,7 +49,7 @@ class VMProductViewSet(ProductViewSet):
|
|||
|
||||
# Add Product record to order (VM is mutable, allows to keep history in order).
|
||||
# XXX: Move this to some kind of on_create hook in parent Product class?
|
||||
order.add_record(vm.setup_fee,
|
||||
order.add_record(vm.one_time_price,
|
||||
vm.recurring_price(order.recurring_period), vm.description)
|
||||
|
||||
return Response(serializer.data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue