From 1223f94cb2f3c546468a2a3063456efbc5e155fe Mon Sep 17 00:00:00 2001 From: Rowan Van der Molen Date: Sat, 13 Oct 2018 20:57:30 +0200 Subject: [PATCH] #110 Don't break django.debug.technical_500_response when Attachment.original_filename is None --- mailqueue/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailqueue/models.py b/mailqueue/models.py index 2e310c1..bca3485 100644 --- a/mailqueue/models.py +++ b/mailqueue/models.py @@ -150,4 +150,4 @@ class Meta: verbose_name_plural = _('Attachments') def __str__(self): - return self.original_filename + return str(self.original_filename)