From 21faa22404e23cd0535e0b15ff0cad1d0a5c0535 Mon Sep 17 00:00:00 2001 From: Pietro Mingo Date: Sun, 24 Dec 2023 12:53:18 +0100 Subject: [PATCH] MailboxAttachment __str__ change --- django_mailbox/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/django_mailbox/models.py b/django_mailbox/models.py index 4e0c94b4..c623cdf3 100644 --- a/django_mailbox/models.py +++ b/django_mailbox/models.py @@ -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')