From f95896e8ea4086d285a6d4401bab100415432d1d Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 14 Oct 2021 21:33:35 +0200 Subject: [PATCH] this was not meant to be submitted --- InvenTree/InvenTree/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/forms.py b/InvenTree/InvenTree/forms.py index eede6b8d32..dd0af9b6c3 100644 --- a/InvenTree/InvenTree/forms.py +++ b/InvenTree/InvenTree/forms.py @@ -282,7 +282,7 @@ class CustomAccountAdapter(RegistratonMixin, DefaultAccountAdapter): """ def send_mail(self, template_prefix, email, context): """only send mail if backend configured""" - if settings.EMAIL_HOST: + if InvenTreeSetting.get_setting('EMAIL_HOST', None): return super().send_mail(template_prefix, email, context) return False