From aff197c1b5489e6ca6620d59979619c995c1f3d4 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 20 Apr 2019 14:12:45 +0200 Subject: [PATCH] Fix getting StripePlan by plan_id and not name --- hosting/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosting/models.py b/hosting/models.py index 25c8dab8..d4a51763 100644 --- a/hosting/models.py +++ b/hosting/models.py @@ -348,7 +348,7 @@ class MonthlyHostingBill(AssignPermissionsMixin, models.Model): stripe_plan_id = item.plan.id try: stripe_plan = StripePlan.objects.get( - stripe_plan_name=stripe_plan_id + stripe_plan_id=stripe_plan_id ) except StripePlan.DoesNotExist as dne: logger.error(