diff --git a/djangoldp_account/models.py b/djangoldp_account/models.py index 32a1702105b441b8b73a6376c52516369e666489..579057c97b53af80b60574cc8c0bffedf623bf9d 100644 --- a/djangoldp_account/models.py +++ b/djangoldp_account/models.py @@ -176,7 +176,7 @@ def pre_create_account(sender, instance, **kwargs): @receiver(post_save, sender=settings.AUTH_USER_MODEL) def send_email(sender, instance, created, **kwargs): - if created and not Model.is_external(instance) and instance.email: + if created and not Model.is_external(instance) and instance.email and settings.EMAIL_ON_ACCOUNT_CREATION: html_message = loader.render_to_string( 'password/email.html', {