From fcb17284f29204793cb23b75609a2f82737960e0 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 29 Jan 2020 14:00:08 +0100 Subject: [PATCH] Bugfix. --- src/messaging/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.20.1