2447 |
2447 |
2448 args = [] |
2448 args = [] |
2449 args.append(self.__getPythonExecutable()) |
2449 args.append(self.__getPythonExecutable()) |
2450 args.append("manage.py") |
2450 args.append("manage.py") |
2451 args.append("makemigrations") |
2451 args.append("makemigrations") |
2452 args.append("--noinput") |
|
2453 if migration: |
2452 if migration: |
2454 args.append("--name") |
2453 args.append("--name") |
2455 args.append(migration.replace(" ", "_")) |
2454 args.append(migration.replace(" ", "_")) |
2456 if dryRun: |
2455 if dryRun: |
2457 args.append("--dry-run") |
2456 args.append("--dry-run") |
2458 if apps: |
2457 if apps: |
2459 args += apps |
2458 args += apps |
2460 |
2459 |
2461 dia = DjangoDialog(title) |
2460 dia = DjangoDialog(title, showInput=True) |
2462 res = dia.startProcess(args, path) |
2461 res = dia.startProcess(args, path) |
2463 if res: |
2462 if res: |
2464 dia.exec_() |
2463 dia.exec_() |
2465 |
2464 |
2466 def __squashMigrations(self): |
2465 def __squashMigrations(self): |