From 67b03827dfae879ce22ddd1ef9c390869a2fdbc8 Mon Sep 17 00:00:00 2001 From: Jean-Romain Garnier Date: Fri, 17 Apr 2020 11:13:56 +0000 Subject: [PATCH] Always sync email_change_date on manual state change --- users/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/users/forms.py b/users/forms.py index be248214..de229fcd 100644 --- a/users/forms.py +++ b/users/forms.py @@ -675,7 +675,8 @@ class StateForm(FormRevMixin, ModelForm): if self.cleaned_data["state"]: user.state = self.cleaned_data.get("state") user.state_sync() - user.email_change_date_sync() + + user.email_change_date_sync() user.save()