Fix getting StripePlan by plan_id and not name

This commit is contained in:
PCoder 2019-04-20 14:12:45 +02:00
parent c592c0768e
commit aff197c1b5

View file

@ -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(