1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00
This commit is contained in:
Barış Aslan 2017-07-08 12:18:19 +00:00 committed by GitHub
commit 72a83583be

View file

@ -503,6 +503,9 @@ class Message(models.Model):
incoming_messages = IncomingMessageManager() incoming_messages = IncomingMessageManager()
outgoing_messages = OutgoingMessageManager() outgoing_messages = OutgoingMessageManager()
def __str__(self):
return '{} from {}'.format(self.subject, self.from_header)
@property @property
def address(self): def address(self):
"""Property allowing one to get the relevant address(es). """Property allowing one to get the relevant address(es).