Fix getting StripePlan by plan_id and not name
This commit is contained in:
parent
c592c0768e
commit
aff197c1b5
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ class MonthlyHostingBill(AssignPermissionsMixin, models.Model):
|
||||||
stripe_plan_id = item.plan.id
|
stripe_plan_id = item.plan.id
|
||||||
try:
|
try:
|
||||||
stripe_plan = StripePlan.objects.get(
|
stripe_plan = StripePlan.objects.get(
|
||||||
stripe_plan_name=stripe_plan_id
|
stripe_plan_id=stripe_plan_id
|
||||||
)
|
)
|
||||||
except StripePlan.DoesNotExist as dne:
|
except StripePlan.DoesNotExist as dne:
|
||||||
logger.error(
|
logger.error(
|
||||||
|
|
Loading…
Reference in a new issue