forked from uncloud/uncloud
++notes
This commit is contained in:
parent
5ceaaf7c90
commit
f693dd3d18
2 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,6 @@ python manage.py migrate
|
|||
vpn_hostname=vpn-2a0ae5c1200.ungleich.ch wireguard_private_key=$(wg
|
||||
genkey)
|
||||
**** Creating a new vpn network
|
||||
** VPN
|
||||
*** Creating a VPN pool
|
||||
|
||||
#+BEGIN_SRC sh
|
||||
|
|
|
@ -666,10 +666,11 @@ class Product(UncloudModel):
|
|||
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:
|
||||
when_to_start = timezone.now()
|
||||
|
||||
current_recurring_order = Order.objects.filter(
|
||||
# NEXT: find the latest order, use that one...
|
||||
# Update order = create new order
|
||||
if self.order:
|
||||
|
|
Loading…
Reference in a new issue