--- a/ProjectDjango/Project.py Thu Apr 27 19:35:24 2017 +0200 +++ b/ProjectDjango/Project.py Wed Oct 25 19:58:37 2017 +0200 @@ -2421,13 +2421,13 @@ from .DjangoMakeMigrationsDialog import DjangoMakeMigrationsDialog dlg = DjangoMakeMigrationsDialog(self.getRecentApplications()) if dlg.exec_() == QDialog.Accepted: - apps, migration, dryRun = dlg.getData() + apps, migration, dryRun, empty = dlg.getData() if apps: self.setMostRecentApplication(apps) apps = apps.split() - self.makeMigrations(apps, migration, dryRun) + self.makeMigrations(apps, migration, dryRun, empty) - def makeMigrations(self, apps, migration=None, dryRun=False): + def makeMigrations(self, apps, migration=None, dryRun=False, empty=False): """ Public method to generate migrations. @@ -2437,6 +2437,8 @@ @type str @param dryRun flag indicating a dry run @type bool + @param empty flag indicating the creation of an empty migration + @type bool """ title = self.tr("Make Migrations") @@ -2454,6 +2456,8 @@ args.append(migration.replace(" ", "_")) if dryRun: args.append("--dry-run") + if empty: + args.append("--empty") if apps: args += apps