mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-09-12 01:03:09 +00:00
Move should_send_confirmation_email in EmailSettingsForm for consistency
This commit is contained in:
parent
2532f8a142
commit
2a4bd6bd79
1 changed files with 1 additions and 3 deletions
|
@ -853,14 +853,12 @@ class EMailAddressForm(FormRevMixin, ModelForm):
|
||||||
|
|
||||||
class EmailSettingsForm(FormRevMixin, FieldPermissionFormMixin, ModelForm):
|
class EmailSettingsForm(FormRevMixin, FieldPermissionFormMixin, ModelForm):
|
||||||
"""Edit email-related settings"""
|
"""Edit email-related settings"""
|
||||||
|
should_send_confirmation_email = False
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
prefix = kwargs.pop("prefix", self.Meta.model.__name__)
|
prefix = kwargs.pop("prefix", self.Meta.model.__name__)
|
||||||
super(EmailSettingsForm, self).__init__(*args, prefix=prefix, **kwargs)
|
super(EmailSettingsForm, self).__init__(*args, prefix=prefix, **kwargs)
|
||||||
|
|
||||||
self.should_send_confirmation_email = False
|
|
||||||
self.fields["email"].label = _("Main email address")
|
self.fields["email"].label = _("Main email address")
|
||||||
|
|
||||||
if "local_email_redirect" in self.fields:
|
if "local_email_redirect" in self.fields:
|
||||||
self.fields["local_email_redirect"].label = _("Redirect local emails")
|
self.fields["local_email_redirect"].label = _("Redirect local emails")
|
||||||
if "local_email_enabled" in self.fields:
|
if "local_email_enabled" in self.fields:
|
||||||
|
|
Loading…
Reference in a new issue