Si last_rappel vaut None il n'est pas inclus dans le __lt
This commit is contained in:
parent
4b29097f02
commit
b236d6a950
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class Command(BaseCommand):
|
||||||
start__lt=now - first_delay, last_rappel__isnull=True
|
start__lt=now - first_delay, last_rappel__isnull=True
|
||||||
)
|
)
|
||||||
accounts_periodic_mail = account_negatives.filter(
|
accounts_periodic_mail = account_negatives.filter(
|
||||||
last_rappel__isnull=False, last_rappel__lt=now - periodic_delay
|
last_rappel__lt=now - periodic_delay
|
||||||
)
|
)
|
||||||
|
|
||||||
for neg in accounts_first_mail:
|
for neg in accounts_first_mail:
|
||||||
|
|
Loading…
Reference in a new issue