Commit e8ff378d authored by Adrián Ribao's avatar Adrián Ribao
Browse files

fix sending campaign

parent 7aa87bb5
Pipeline #244 passed with stage
in 44 seconds
......@@ -138,7 +138,9 @@ class CampaignDeliver(object):
excluded_emails = ExcludedEmail.objects.all() \
.values_list('email', flat=True)
contacts = self.contact_list.contacts.exclude(email__in=excluded_emails)
contacts = self.campaign.contact_list.contacts.exclude(
email__in=excluded_emails
)
if testing:
contacts = contacts.filter(testing=True)
return contacts
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment