mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
MailboxAttachment __str__ change
This commit is contained in:
parent
d04d4d56da
commit
21faa22404
1 changed files with 2 additions and 1 deletions
|
|
@ -881,7 +881,8 @@ class MessageAttachment(models.Model):
|
|||
return value
|
||||
|
||||
def __str__(self):
|
||||
return self.document.url
|
||||
return f'{self.message}: {self.document.url if self.document else None}'
|
||||
|
||||
|
||||
class Meta:
|
||||
verbose_name = _('Message attachment')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue