0001-misc-use-lazy-variables-when-rendering-email-content.patch
wcs/qommon/emails.py | ||
---|---|---|
110 | 110 | |
111 | 111 | |
112 | 112 |
def template_email(subject, mail_body, mail_body_data, email_rcpt, email_type=None, **kwargs): |
113 |
data = get_publisher().substitutions.get_context_variables() |
|
113 |
data = get_publisher().substitutions.get_context_variables(mode='lazy')
|
|
114 | 114 |
if mail_body_data: |
115 | 115 |
data.update(mail_body_data) |
116 | 116 |
real_subject = Template(subject, autoescape=False).render(data) |
117 |
- |