sendinformationcheck.py 474 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from django.core.management.base import BaseCommand

from members import emails


class Command(BaseCommand):

    def add_arguments(self, parser):
        parser.add_argument(
            '--dry-run',
            action='store_true',
            dest='dry-run',
            default=False,
            help='Dry run instead of sending e-mail',
        )

    def handle(self, *args, **options):
        emails.send_information_request(
            bool(options['dry-run']))