Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
Nico Schottelius 2020-02-27 12:36:33 +01:00
parent a9aac39486
commit 7bf4f2adb2

View file

@ -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,