This commit is contained in:
Nico Schottelius 2020-08-09 21:10:43 +02:00
parent 5ceaaf7c90
commit f693dd3d18
2 changed files with 2 additions and 2 deletions

View file

@ -119,7 +119,6 @@ python manage.py migrate
vpn_hostname=vpn-2a0ae5c1200.ungleich.ch wireguard_private_key=$(wg vpn_hostname=vpn-2a0ae5c1200.ungleich.ch wireguard_private_key=$(wg
genkey) genkey)
**** Creating a new vpn network **** Creating a new vpn network
** VPN
*** Creating a VPN pool *** Creating a VPN pool
#+BEGIN_SRC sh #+BEGIN_SRC sh

View file

@ -666,10 +666,11 @@ class Product(UncloudModel):
self.orders.add(recurring_order) self.orders.add(recurring_order)
def create_or_update_order(self, when_to_start=None, recurring_period=None): def create_or_update_recurring_order(self, when_to_start=None, recurring_period=None):
if not when_to_start: if not when_to_start:
when_to_start = timezone.now() when_to_start = timezone.now()
current_recurring_order = Order.objects.filter(
# NEXT: find the latest order, use that one... # NEXT: find the latest order, use that one...
# Update order = create new order # Update order = create new order
if self.order: if self.order: