Removed call to refresh_from_db as it was wrongly used

This commit is contained in:
M.Ravi 2017-06-23 00:15:47 +05:30
parent d4e7eb9511
commit e5929b8f76

View file

@ -176,7 +176,6 @@ class StripeCustomer(models.Model):
return stripe_customer
except StripeCustomer.DoesNotExist:
CustomUser.refresh_from_db()
user = CustomUser.objects.get(email=email)
stripe_utils = StripeUtils()
stripe_data = stripe_utils.create_customer(token, email)