From a6b40510d051b7ab2dfce6db1b2eb5ef7a18194b Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Tue, 14 Sep 2021 20:23:24 +0800 Subject: [PATCH] fix: ticket_notice_bug --- apps/tickets/notifications.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/apps/tickets/notifications.py b/apps/tickets/notifications.py index e39edee0f..e0fba3d6c 100644 --- a/apps/tickets/notifications.py +++ b/apps/tickets/notifications.py @@ -13,13 +13,15 @@ EMAIL_TEMPLATE = '''

{title} - - {ticket_detail_url_description} -

{body}
+
+ + {ticket_detail_url_description} + +
''' @@ -36,13 +38,12 @@ class BaseTicketMessage(UserMessage): def get_text_msg(self) -> dict: message = """ - {title}: {ticket_detail_url} -> {ticket_detail_url_description} + {title}: {ticket_detail_url} {body} """.format( title=self.content_title, ticket_detail_url=self.ticket_detail_url, - ticket_detail_url_description=_('click here to review'), - body=self.ticket.body + body=self.ticket.body.replace('
', '').replace('
', '') ) return { 'subject': self.subject,