1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00

Added __str__ function to Mailbox Model

Added __str__ function to Mailbox Model for Messages Admin Template
This commit is contained in:
Barış Aslan 2017-05-21 04:25:23 +03:00 committed by GitHub
parent 89b2d3a105
commit a6b9553410

View file

@ -109,6 +109,9 @@ class Mailbox(models.Model):
objects = models.Manager()
active_mailboxes = ActiveMailboxManager()
def __str__(self):
return self.name
@property
def _protocol_info(self):