fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
db6ce7e
)
Bugfix
author
Radek Czajka
<rczajka@rczajka.pl>
Wed, 29 Jan 2020 08:22:50 +0000
(09:22 +0100)
committer
Radek Czajka
<rczajka@rczajka.pl>
Wed, 29 Jan 2020 08:22:50 +0000
(09:22 +0100)
src/messaging/models.py
patch
|
blob
|
history
diff --git
a/src/messaging/models.py
b/src/messaging/models.py
index
4705b97
..
4f394c3
100644
(file)
--- 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):
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()
def run(self, time=None, verbose=False, dry_run=False):
state = self.get_state()