From 28637f279601399c4a9feff107d25454e44312a9 Mon Sep 17 00:00:00 2001 From: wbanks Date: Thu, 13 Jun 2024 13:12:35 -0400 Subject: [PATCH] Fix prop logic for template_process_type again --- app/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models.py b/app/models.py index c7a0eb0d28..dbe2174e27 100644 --- a/app/models.py +++ b/app/models.py @@ -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