mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
Added __str__ function to Message Model
This commit is contained in:
parent
89b2d3a105
commit
9ad332addd
1 changed files with 3 additions and 0 deletions
|
|
@ -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).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue