forked from CGM_Public/pretix_original
Update css-inline requirement from ==0.8.* to ==0.13.*
This commit is contained in:
@@ -33,7 +33,7 @@ dependencies = [
|
|||||||
"celery==5.3.*",
|
"celery==5.3.*",
|
||||||
"chardet==5.2.*",
|
"chardet==5.2.*",
|
||||||
"cryptography>=3.4.2",
|
"cryptography>=3.4.2",
|
||||||
"css-inline==0.8.*",
|
"css-inline==0.13.*",
|
||||||
"defusedcsv>=1.1.0",
|
"defusedcsv>=1.1.0",
|
||||||
"dj-static",
|
"dj-static",
|
||||||
"Django==4.2.*",
|
"Django==4.2.*",
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ class TemplateBasedMailRenderer(BaseHTMLMailRenderer):
|
|||||||
tpl = get_template(self.template_name)
|
tpl = get_template(self.template_name)
|
||||||
body_html = tpl.render(htmlctx)
|
body_html = tpl.render(htmlctx)
|
||||||
|
|
||||||
inliner = css_inline.CSSInliner(remove_style_tags=True)
|
inliner = css_inline.CSSInliner(keep_style_tags=False)
|
||||||
body_html = inliner.inline(body_html)
|
body_html = inliner.inline(body_html)
|
||||||
|
|
||||||
return body_html
|
return body_html
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ def send_notification_mail(notification: Notification, user: User):
|
|||||||
tpl_html = get_template('pretixbase/email/notification.html')
|
tpl_html = get_template('pretixbase/email/notification.html')
|
||||||
|
|
||||||
body_html = tpl_html.render(ctx)
|
body_html = tpl_html.render(ctx)
|
||||||
inliner = css_inline.CSSInliner(remove_style_tags=True)
|
inliner = css_inline.CSSInliner(keep_style_tags=False)
|
||||||
body_html = inliner.inline(body_html)
|
body_html = inliner.inline(body_html)
|
||||||
|
|
||||||
tpl_plain = get_template('pretixbase/email/notification.txt')
|
tpl_plain = get_template('pretixbase/email/notification.txt')
|
||||||
|
|||||||
Reference in New Issue
Block a user