diff options
Diffstat (limited to 'app/lttr/models.py')
-rw-r--r-- | app/lttr/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/lttr/models.py b/app/lttr/models.py index bce6b06..8c0f335 100644 --- a/app/lttr/models.py +++ b/app/lttr/models.py @@ -390,6 +390,9 @@ class MailingStatus(models.Model): status = models.IntegerField(choices=StatusType.choices, null=True) creation_date = models.DateTimeField(_('creation date'), auto_now_add=True) + def newsletter(self): + return newsletter_mailing.newsletter + def __str__(self): return '%s : %s : %s' % (self.newsletter_mailing, self.subscriber, |