diff --git a/pinax/stripe/actions/customers.py b/pinax/stripe/actions/customers.py index 5606200bb..ad8dbb48e 100644 --- a/pinax/stripe/actions/customers.py +++ b/pinax/stripe/actions/customers.py @@ -1,4 +1,4 @@ -from django.db import IntegrityError, transaction +from django.db import IntegrityError from django.utils import timezone from django.utils.encoding import smart_str @@ -54,11 +54,10 @@ def create(user, card=None, plan=settings.PINAX_STRIPE_DEFAULT_PLAN, charge_imme trial_end=trial_end ) try: - with transaction.atomic(): - cus = models.Customer.objects.create( - user=user, - stripe_id=stripe_customer["id"] - ) + cus = models.Customer.objects.create( + user=user, + stripe_id=stripe_customer["id"] + ) except IntegrityError: # There is already a Customer object for this user stripe.Customer.retrieve(stripe_customer["id"]).delete()