Skip to content

Commit

Permalink
MailboxAttachment __str__ change
Browse files Browse the repository at this point in the history
  • Loading branch information
Pietro Mingo committed Dec 24, 2023
1 parent d04d4d5 commit 21faa22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django_mailbox/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,8 @@ def __getitem__(self, name):
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')
Expand Down

0 comments on commit 21faa22

Please sign in to comment.