From f693dd3d18ab046232609a99b26a7796e7c6cd2c Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 9 Aug 2020 21:10:43 +0200 Subject: [PATCH] ++notes --- doc/uncloud-manual-2020-08-01.org | 1 - uncloud_pay/models.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) 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: