From da26b3e0d3fabf85f6ee0288238882e810612da6 Mon Sep 17 00:00:00 2001 From: Stephan Telling Date: Sun, 21 May 2017 20:57:16 +0200 Subject: [PATCH] add str method for OutgoingEmail --- src/utils/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/models.py b/src/utils/models.py index 0fe48d72..5699b323 100644 --- a/src/utils/models.py +++ b/src/utils/models.py @@ -94,6 +94,9 @@ class OutgoingEmail(CreatedUpdatedModel): attachment = models.FileField(blank=True) processed = models.BooleanField(default=False) + def __str__(self): + return 'OutgoingEmail Object id: {} '.format(self.id) + def clean(self): if not self.to_recipients \ and not self.bcc_recipients \