1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-10 06:48:19 +02:00

Add file header and dummy HTML method.

This commit is contained in:
Ariel Gerardo Ríos 2014-08-29 17:24:38 -03:00
parent 305d1c5c38
commit ce7e17b50c
2 changed files with 16 additions and 0 deletions

View file

@ -499,6 +499,10 @@ class Message(models.Model):
def text(self):
return self.get_text_body()
@property
def html(self):
return "<html><head></head><body></body></html>"
def get_text_body(self):
def get_body_from_message(message):
body = six.text_type('')