mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
Attempt fix to make constance config accessible in email template
This commit is contained in:
@@ -46,10 +46,10 @@ class User(AbstractUser):
|
|||||||
"""Send a welcome email to a new user."""
|
"""Send a welcome email to a new user."""
|
||||||
# Get exported data from settings.py first
|
# Get exported data from settings.py first
|
||||||
# context = settings_export(None)
|
# context = settings_export(None)
|
||||||
context = config
|
context = {
|
||||||
context.update({
|
|
||||||
'user': self,
|
'user': self,
|
||||||
})
|
'config': config,
|
||||||
|
}
|
||||||
|
|
||||||
logger.info('Sending welcome mail to user \'%s\'', self.username)
|
logger.info('Sending welcome mail to user \'%s\'', self.username)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user