Attempt fix to make constance config accessible in email template

This commit is contained in:
2023-01-07 19:14:34 +00:00
parent 2c1ebbc399
commit d6bd47b4ea

View File

@@ -46,10 +46,10 @@ class User(AbstractUser):
"""Send a welcome email to a new user."""
# Get exported data from settings.py first
# context = settings_export(None)
context = config
context.update({
context = {
'user': self,
})
'config': config,
}
logger.info('Sending welcome mail to user \'%s\'', self.username)