fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfix.
[wolnelektury.git]
/
src
/
messaging
/
models.py
diff --git
a/src/messaging/models.py
b/src/messaging/models.py
index
8ef6c4c
..
da8a01e
100644
(file)
--- a/
src/messaging/models.py
+++ b/
src/messaging/models.py
@@
-40,7
+40,7
@@
class EmailTemplate(models.Model):
state = self.get_state(time=time)
contacts = state.get_contacts()
state = self.get_state(time=time)
contacts = state.get_contacts()
- contacts = contacts.exclude(emailsent_
set_
_template=self)
+ contacts = contacts.exclude(emailsent__template=self)
for contact in contacts:
self.send(contact, verbose=verbose, dry_run=dry_run)
for contact in contacts:
self.send(contact, verbose=verbose, dry_run=dry_run)