add str method for OutgoingEmail
This commit is contained in:
parent
46cf9c53f7
commit
da26b3e0d3
|
@ -94,6 +94,9 @@ class OutgoingEmail(CreatedUpdatedModel):
|
||||||
attachment = models.FileField(blank=True)
|
attachment = models.FileField(blank=True)
|
||||||
processed = models.BooleanField(default=False)
|
processed = models.BooleanField(default=False)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return 'OutgoingEmail Object id: {} '.format(self.id)
|
||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
if not self.to_recipients \
|
if not self.to_recipients \
|
||||||
and not self.bcc_recipients \
|
and not self.bcc_recipients \
|
||||||
|
|
Loading…
Reference in a new issue