Initial product activation implementation

This commit is contained in:
fnux 2020-03-10 09:14:52 +01:00
commit 5d5bf486b5
3 changed files with 43 additions and 24 deletions

View file

@ -116,7 +116,7 @@ class VMProductViewSet(ProductViewSet):
order_recurring_period = serializer.validated_data.pop("recurring_period")
# Create base order.
order = Order.objects.create(
order = Order(
recurring_period=order_recurring_period,
owner=request.user,
starting_date=timezone.now()