diff --git a/doc/uncloud-manual-2020-08-01.org b/doc/uncloud-manual-2020-08-01.org index 6e8e4be..cead06e 100644 --- a/doc/uncloud-manual-2020-08-01.org +++ b/doc/uncloud-manual-2020-08-01.org @@ -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 diff --git a/uncloud_pay/models.py b/uncloud_pay/models.py index 6169d4f..60a3401 100644 --- a/uncloud_pay/models.py +++ b/uncloud_pay/models.py @@ -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: