From ac7ea6cd239ddde4ddaa1442aaf49a086d72cd3e Mon Sep 17 00:00:00 2001 From: Jean-Romain Garnier Date: Fri, 17 Apr 2020 17:04:00 +0000 Subject: [PATCH] Move should_send_confirmation_email in EmailSettingsForm for consistency --- users/forms.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/users/forms.py b/users/forms.py index 0e40870e..68492937 100644 --- a/users/forms.py +++ b/users/forms.py @@ -853,14 +853,12 @@ class EMailAddressForm(FormRevMixin, ModelForm): class EmailSettingsForm(FormRevMixin, FieldPermissionFormMixin, ModelForm): """Edit email-related settings""" + should_send_confirmation_email = False def __init__(self, *args, **kwargs): prefix = kwargs.pop("prefix", self.Meta.model.__name__) super(EmailSettingsForm, self).__init__(*args, prefix=prefix, **kwargs) - - self.should_send_confirmation_email = False self.fields["email"].label = _("Main email address") - if "local_email_redirect" in self.fields: self.fields["local_email_redirect"].label = _("Redirect local emails") if "local_email_enabled" in self.fields: