def save(self, *args, **kwargs):
if self.send_html:<EOL><INDENT>self.content = get_text_for_html(self.html_content)<EOL><DEDENT>else:<EOL><INDENT>self.html_content = None<EOL><DEDENT>super(EmailTemplate, self).save(*args, **kwargs)<EOL>
If this is an HTML template, then set the non-HTML content to be the stripped version of the HTML.
If this is a plain text template, then set the HTML content to be null.