

def handle(self, args, other):
    django.setup()
    if args.partial_reset:
        copy_tmp('opencivicdata_division')
        drop_tables()
    elif args.reset:
        drop_tables()
    else:
        pass
    call_command('migrate', interactive=False)
    if args.partial_reset:
        restore_from_tmp('opencivicdata_division')
    else:
        for country in args.country:
            call_command('loaddivisions', country)

dataset/ETHPy150Open opencivicdata/pupa/pupa/cli/commands/dbinit.py Command.handle/original