From: Radek Czajka Date: Wed, 29 Jan 2020 13:00:08 +0000 (+0100) Subject: Bugfix. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/fcb17284f29204793cb23b75609a2f82737960e0 Bugfix. --- diff --git a/src/messaging/models.py b/src/messaging/models.py index 8ef6c4c0f..da8a01edc 100644 --- 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() - 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)