actions: Use transaction.atomic for do_change_avatar_fields.

This commit is contained in:
Sahil Batra 2022-01-03 16:54:39 +05:30 committed by Tim Abbott
parent a2df7470d5
commit 5e506a833f
1 changed files with 1 additions and 0 deletions

View File

@ -4677,6 +4677,7 @@ def notify_avatar_url_change(user_profile: UserProfile) -> None:
)
@transaction.atomic(savepoint=False)
def do_change_avatar_fields(
user_profile: UserProfile,
avatar_source: str,