diff --git a/django_mailbox/models.py b/django_mailbox/models.py index 4e0c94b..c623cdf 100644 --- a/django_mailbox/models.py +++ b/django_mailbox/models.py @@ -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')