mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 22:22:26 +00:00
Move should_send_confirmation_email in EmailSettingsForm for consistency
This commit is contained in:
parent
cdc25ad5ec
commit
ac7ea6cd23
1 changed files with 1 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue