mirror of https://github.com/zulip/zulip.git
Fix transaction management in create_mit_user_if_needed.
(imported from commit 063eaf5180964ad32a6feb3c899a4cc5beea6fe9)
This commit is contained in:
parent
72af050b32
commit
748927ad7c
|
@ -107,6 +107,7 @@ def compute_mit_user_fullname(email):
|
|||
traceback.print_exc()
|
||||
return email.lower()
|
||||
|
||||
@transaction.commit_on_success
|
||||
def create_mit_user_if_needed(realm, email):
|
||||
try:
|
||||
return UserProfile.objects.get(user__email=email)
|
||||
|
|
Loading…
Reference in New Issue