forked from uncloud/uncloud
--debug
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
a9aac39486
commit
7bf4f2adb2
1 changed files with 0 additions and 2 deletions
|
@ -45,7 +45,6 @@ class VMSnapshotProductViewSet(viewsets.ModelViewSet):
|
||||||
serializer = VMSnapshotProductSerializer(data=request.data, context={'request': request})
|
serializer = VMSnapshotProductSerializer(data=request.data, context={'request': request})
|
||||||
serializer.is_valid(raise_exception=True)
|
serializer.is_valid(raise_exception=True)
|
||||||
|
|
||||||
print(serializer)
|
|
||||||
# Create order
|
# Create order
|
||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
order = Order(owner=request.user,
|
order = Order(owner=request.user,
|
||||||
|
@ -55,7 +54,6 @@ class VMSnapshotProductViewSet(viewsets.ModelViewSet):
|
||||||
one_time_price=0,
|
one_time_price=0,
|
||||||
recurring_period="per_month")
|
recurring_period="per_month")
|
||||||
order.save()
|
order.save()
|
||||||
print(order)
|
|
||||||
|
|
||||||
# FIXME: calculate the gb_* values
|
# FIXME: calculate the gb_* values
|
||||||
serializer.save(owner=request.user,
|
serializer.save(owner=request.user,
|
||||||
|
|
Loading…
Reference in a new issue