for user in self get_db_users print user if not self ignore_unsubscrib

1
2
3
4
5
6
7
for user in self.get_db_users():
print user
if not self.ignore_unsubscribed and (
not getattr(user, 'is_allow_email', True) or UnsubscribeEmail.objects.filter(
email=user.email).exists()):
continue
yield user