From d303cec90764bd2d87ba790e4b588fa0758b8edc Mon Sep 17 00:00:00 2001 From: Muhammad Faraz Maqsood Date: Fri, 22 Sep 2023 16:52:30 +0500 Subject: [PATCH] perf!: allow calling register view in another view (#423) Co-authored-by: Muhammad Faraz Maqsood --- 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)