fix my last commit
@@ -197,7 +197,7 @@ class CoreSettings(BaseAuditModel):
return True
def send_sms(self, body, alert_template=None, test=False):
- if not alert_template and not self.sms_is_configured:
+ if not alert_template or not self.sms_is_configured:
return "Sms alerting is not setup correctly."
# override email recipients if alert_template is passed and is set
