def get_subject_and_message(self, language): """ Returns the subject and message rendered in the specified language. """ return render_message_to_string(self.subject_template, self.message_template, self.get_email_params(), language=language)
def get_subject_and_message_ccx(self, subject_template, message_template): """ Returns the subject and message rendered in the specified language for CCX. """ return render_message_to_string( subject_template, message_template, self.get_email_params_ccx() )
def get_subject_and_message(self, language): """ Returns the subject and message rendered in the specified language. """ return render_message_to_string( self.subject_template, self.message_template, self.get_email_params(), language=language )