From 799361803a5f39b8867733dd63f8fc3e101756cc Mon Sep 17 00:00:00 2001 From: Muhammad Faraz Maqsood Date: Fri, 22 Sep 2023 15:10:30 +0500 Subject: [PATCH] perf!: allow calling register view in another view --- openedx/core/djangoapps/user_authn/views/register.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)