From d6e4a8672433e1b50324d8dab0061b1e19b95b81 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 23 Sep 2018 13:34:26 +0200 Subject: [PATCH] Append One time charge/Recurring only for generic payments --- hosting/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hosting/models.py b/hosting/models.py index 15ebb07c..b89f2848 100644 --- a/hosting/models.py +++ b/hosting/models.py @@ -99,10 +99,10 @@ class HostingOrder(AssignPermissionsMixin, models.Model): ) if self.generic_payment_id is not None: hosting_order_str += " - Generic Payment" - if self.stripe_charge_id is not None: - hosting_order_str += " - One time charge" - else: - hosting_order_str += " - Recurring" + if self.stripe_charge_id is not None: + hosting_order_str += " - One time charge" + else: + hosting_order_str += " - Recurring" return hosting_order_str @cached_property