From 6124b40bc72e1df4aa9a16a8d737ee4c341fd7b9 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Sun, 14 Apr 2019 18:47:02 -0400 Subject: [PATCH] Fixing #1170: Changing email should change social profile gravatar email. --- apps/profile/forms.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/profile/forms.py b/apps/profile/forms.py index c26021805..379829751 100644 --- a/apps/profile/forms.py +++ b/apps/profile/forms.py @@ -181,6 +181,10 @@ class AccountSettingsForm(forms.Form): if self.user.email != email: self.user.email = email self.user.save() + + sp = MSocialProfile.get_user(self.user.pk) + sp.email = email + sp.save() if old_password or new_password: change_password(self.user, old_password, new_password)