email_log: Reset the value of email after email change process.

This commit actually needs only user_profile.save() line
but it's more readable with both the lines.
This commit is contained in:
Vishnu Ks 2017-11-20 17:02:49 +00:00 committed by Tim Abbott
parent 0667a62244
commit 432c9d3449
1 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,9 @@ def generate_all_emails(request):
user_profile = get_user(registered_email, realm)
result = client.get(url)
assert result.status_code == 200
# Reset the email value
user_profile.email = registered_email
user_profile.save()
# Follow up day1 day2 emails
enqueue_welcome_emails(user_profile)