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.is_valid(raise_exception=True)
print(serializer)
# Create order
now = datetime.datetime.now()
order = Order(owner=request.user,
@ -55,7 +54,6 @@ class VMSnapshotProductViewSet(viewsets.ModelViewSet):
one_time_price=0,
recurring_period="per_month")
order.save()
print(order)
# FIXME: calculate the gb_* values
serializer.save(owner=request.user,