summaryrefslogtreecommitdiffstats
path: root/engagements/management/commands/create_engagement_data.py
blob: 021d29b9ec29bfe4533c69cb3681d16ae41a6601 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from django.core.management.base import BaseCommand

from engagements.utils import populate_database


class Command(BaseCommand):
    help = "python manage.py create_engagement_data"

    # def add_arguments(self, parser):
    #     parser.add_argument("year", nargs="+", type=int)

    def handle(self, *args, **options):
        populate_database()
        self.stdout.write(self.style.SUCCESS("Created engagement objects."))