From: Radek Czajka Date: Wed, 29 Jan 2020 08:22:50 +0000 (+0100) Subject: Bugfix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/f1143b5bcf508dcfe7f72e90faee72cf72a2392a?ds=sidebyside;hp=db6ce7eb0542012566e8632cd8db45d647b1d652 Bugfix --- diff --git a/src/messaging/models.py b/src/messaging/models.py index 4705b97bd..4f394c397 100644 --- a/src/messaging/models.py +++ b/src/messaging/models.py @@ -31,7 +31,7 @@ class EmailTemplate(models.Model): verbose_name_plural = _('email templates') def __str__(self): - return '%s (%+d)' % (self.get_state_display(), self.min_days_since) + return '%s (%+d)' % (self.get_state_display(), self.min_days_since or 0) def run(self, time=None, verbose=False, dry_run=False): state = self.get_state()