mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Fix switching from SMTP to custom email
This commit is contained in:
@@ -170,6 +170,13 @@ class MailSettingsSetupView(TemplateView):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if allow_save:
|
if allow_save:
|
||||||
|
self.object.settings.smtp_use_custom = False
|
||||||
|
del self.object.settings.smtp_host
|
||||||
|
del self.object.settings.smtp_port
|
||||||
|
del self.object.settings.smtp_username
|
||||||
|
del self.object.settings.smtp_password
|
||||||
|
del self.object.settings.smtp_use_tls
|
||||||
|
del self.object.settings.smtp_use_ssl
|
||||||
for k, v in self.simple_form.cleaned_data.items():
|
for k, v in self.simple_form.cleaned_data.items():
|
||||||
self.object.settings.set(k, v)
|
self.object.settings.set(k, v)
|
||||||
self.log_action(self.simple_form.cleaned_data)
|
self.log_action(self.simple_form.cleaned_data)
|
||||||
|
|||||||
Reference in New Issue
Block a user