diff --git a/openedx/core/djangoapps/user_authn/views/register.py b/openedx/core/djangoapps/user_authn/views/register.py index c494f8e015c2..0d0390d9deaa 100644 --- a/openedx/core/djangoapps/user_authn/views/register.py +++ b/openedx/core/djangoapps/user_authn/views/register.py @@ -217,7 +217,7 @@ def create_account_with_params(request, params): # pylint: disable=too-many-sta is_marketable = params.get('marketing_emails_opt_in') in ['true', '1'] # Perform operations within a transaction that are critical to account creation - with outer_atomic(): + with transaction.atomic(): # first, create the account (user, profile, registration) = do_create_account(form, custom_form)