Skip to content

Commit

Permalink
perf!: allow calling register view in another view (#423)
Browse files Browse the repository at this point in the history
Co-authored-by: Muhammad Faraz  Maqsood <[email protected]>
  • Loading branch information
Faraz32123 and Muhammad Faraz Maqsood committed Sep 22, 2023
1 parent de14328 commit d303cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openedx/core/djangoapps/user_authn/views/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d303cec

Please sign in to comment.