Skip to content

Commit

Permalink
UTILS-169 Upgrade Mistune to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
kalbfled committed Dec 18, 2024
1 parent 2d340c7 commit 56b97d0
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
validate_email_address,
validate_phone_number,
)
from notifications_utils.template import (
LetterPrintTemplate,
PlainTextEmailTemplate,
SMSMessageTemplate,
)
from notifications_utils.template import PlainTextEmailTemplate, SMSMessageTemplate
from notifications_utils.timezones import convert_local_timezone_to_utc, convert_utc_to_local_timezone

from app import encryption
Expand Down Expand Up @@ -933,11 +929,6 @@ def _as_utils_template(self):
return PlainTextEmailTemplate({'content': self.content, 'subject': self.subject})
if self.template_type == SMS_TYPE:
return SMSMessageTemplate({'content': self.content})
if self.template_type == LETTER_TYPE:
return LetterPrintTemplate(
{'content': self.content, 'subject': self.subject},
contact_block=self.service.get_default_letter_contact(),
)

def serialize(self):
serialized = {
Expand Down

0 comments on commit 56b97d0

Please sign in to comment.