8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-27 17:33:45 +00:00

Always sync email_change_date on manual state change

This commit is contained in:
Jean-Romain Garnier 2020-04-17 11:13:56 +00:00 committed by Gabriel Detraz
parent 80124695ad
commit 2793e207c0

View file

@ -675,6 +675,7 @@ class StateForm(FormRevMixin, ModelForm):
if self.cleaned_data["state"]: if self.cleaned_data["state"]:
user.state = self.cleaned_data.get("state") user.state = self.cleaned_data.get("state")
user.state_sync() user.state_sync()
user.email_change_date_sync() user.email_change_date_sync()
user.save() user.save()