File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -1466,21 +1466,8 @@ def get_formatted_content(self) -> str:
1466
1466
Returns:
1467
1467
Formatted template content
1468
1468
"""
1469
- if self .type == TemplateTypeChoices .SIGNATURE :
1470
- # For signatures, prefer HTML body if available, otherwise text body
1471
- return self .html_body or self .text_body
1472
-
1473
- # For non-signatures, return HTML body if available, otherwise text body
1474
1469
return self .html_body or self .text_body
1475
1470
1476
- def is_signature (self ) -> bool :
1477
- """Check if this template is a signature."""
1478
- return self .type == TemplateTypeChoices .SIGNATURE
1479
-
1480
- def is_template (self ) -> bool :
1481
- """Check if this template is a regular template (not a signature)."""
1482
- return self .type != TemplateTypeChoices .SIGNATURE
1483
-
1484
1471
1485
1472
class EmailTemplateMailDomain (BaseModel ):
1486
1473
"""Through model for EmailTemplate to MailDomain relationship with is_default flag."""
You can’t perform that action at this time.
0 commit comments