X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/df4e3c8b0d4dfa9ec6d16340465dc4ed0182a297..84a3f7f335bf15b4671cc56c26d243bf539a9536:/src/messaging/management/commands/messaging_send.py diff --git a/src/messaging/management/commands/messaging_send.py b/src/messaging/management/commands/messaging_send.py index 82743f253..2fa817666 100644 --- a/src/messaging/management/commands/messaging_send.py +++ b/src/messaging/management/commands/messaging_send.py @@ -9,6 +9,6 @@ class Command(BaseCommand): parser.add_argument('--dry-run', action='store_true', help='Dry run') def handle(self, *args, **options): - for et in EmailTemplate.objects.order_by('min_days_since').filter(is_active=True): + for et in EmailTemplate.get_current().order_by('min_days_since'): et.run(verbose=True, dry_run=options['dry_run'])