start_import.py 233 Bytes
from django.core.management.base import BaseCommand

from common.models import ImportInProgress

class Command(BaseCommand):
    args = 'none'
    help = ''

    def handle(self, **options):
        ImportInProgress.objects.create()