Skip to content

Commit

Permalink
Fix prop logic for template_process_type again
Browse files Browse the repository at this point in the history
  • Loading branch information
whabanks committed Jun 13, 2024
1 parent 0430b4b commit 28637f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1218,10 +1218,10 @@ def get_link(self):

@property
def template_process_type(self):
if self.template_type == SMS_TYPE and self.template_categories.sms_process_type:
return self.template_categories.sms_process_type
elif self.template_type == EMAIL_TYPE and self.template_categories.email_process_type:
return self.template_categories.email_process_type
if self.template_type == SMS_TYPE:
return self.process_type if self.process_type else self.template_categories.sms_process_type
elif self.template_type == EMAIL_TYPE:
return self.process_type if self.process_type else self.template_categories.email_process_type
return self.process_type

@classmethod
Expand Down

0 comments on commit 28637f2

Please sign in to comment.