Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Adrián Ribao
Cartero
Commits
e8ff378d
Commit
e8ff378d
authored
Sep 07, 2016
by
Adrián Ribao
Browse files
fix sending campaign
parent
7aa87bb5
Pipeline
#244
passed with stage
in 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cartero/utils/sending.py
View file @
e8ff378d
...
@@ -138,7 +138,9 @@ class CampaignDeliver(object):
...
@@ -138,7 +138,9 @@ class CampaignDeliver(object):
excluded_emails
=
ExcludedEmail
.
objects
.
all
()
\
excluded_emails
=
ExcludedEmail
.
objects
.
all
()
\
.
values_list
(
'email'
,
flat
=
True
)
.
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
:
if
testing
:
contacts
=
contacts
.
filter
(
testing
=
True
)
contacts
=
contacts
.
filter
(
testing
=
True
)
return
contacts
return
contacts
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment