|
|
|
|
@ -350,10 +350,10 @@ class NewsLetterSender(object): |
|
|
|
|
if self.newsletter.theme_for_filter: |
|
|
|
|
already_sent = \ |
|
|
|
|
ContactMailingStatus.objects.filter( |
|
|
|
|
status=ContactMailingStatus.SENT, |
|
|
|
|
Q(newsletter=self.newsletter) | \ |
|
|
|
|
Q(newsletter__mailing_list=self.newsletter.mailing_list, |
|
|
|
|
creation_date__gte=datetime.now() - timedelta(days=2)) |
|
|
|
|
creation_date__gte=datetime.now() - timedelta(days=2)), |
|
|
|
|
status=ContactMailingStatus.SENT, |
|
|
|
|
).values_list('contact__id', flat=True) |
|
|
|
|
|
|
|
|
|
qs = qs.filter(contactsettings__theme=self.newsletter.theme_for_filter) |
|
|
|
|
|