Esempio n. 1
0
    def drip(self):
        from drip.drips import DripBase

        drip = DripBase(drip_model=self,
                        name=self.name,
                        from_email=self.from_email if self.from_email else None,
                        from_email_name=self.from_email_name if self.from_email_name else None,
                        subject_template=self.subject_template if self.subject_template else None,
                        body_template=self.body_html_template if self.body_html_template else None)
        return drip
Esempio n. 2
0
    def drip(self):
        from drip.drips import DripBase

        drip = DripBase(
            drip_model=self,
            name=self.name,
            from_email=self.from_email if self.from_email else None,
            from_email_name=self.from_email_name if
            (self.from_email_name) else None,
            subject_template=self.subject_template if
            (self.subject_template) else None,
            pre_header_text=self.pre_header_text if
            (self.pre_header_text) else None,
            body_template=self.body_html_template if
            (self.body_html_template) else None,
            sms_text=self.sms_text if (self.sms_text) else None)
        return drip