Need to use hasattr to check for stripe_customer_id.

This commit is contained in:
Brian Simpson
2013-11-15 03:06:41 -05:00
parent 5c64272668
commit 929e1db472

View File

@@ -2257,7 +2257,7 @@ class GoldPayment(Templated):
class GoldSubscription(Templated):
def __init__(self, user):
if user.stripe_customer_id:
if hasattr(user, 'stripe_customer_id'):
details = get_subscription_details(user)
else:
details = None