ProjectDjango/DjangoMigrationsListDialog.py

changeset 75
0165ce437462
parent 73
8a4ccc4f1359
child 93
cf83715ac2f7
diff -r f33822c3eb47 -r 0165ce437462 ProjectDjango/DjangoMigrationsListDialog.py
--- a/ProjectDjango/DjangoMigrationsListDialog.py	Mon Dec 19 19:26:40 2016 +0100
+++ b/ProjectDjango/DjangoMigrationsListDialog.py	Mon Dec 19 20:22:37 2016 +0100
@@ -36,10 +36,12 @@
         """
         Constructor
         
+        @param mode mode of the dialog
+        @type str
+        @param django reference to the Django project object
+        @type Project
         @param parent reference to the parent widget
         @type QWidget
-        @param django reference to the Django project object
-        @type Project
         """
         super(DjangoMigrationsListDialog, self).__init__(parent)
         self.setupUi(self)
@@ -235,7 +237,7 @@
             ])
             itm = QTreeWidgetItem(self.migrationsList, [
                 parts[0].strip(),
-                dependencies, 
+                dependencies,
             ])
         else:
             itm = QTreeWidgetItem(self.migrationsList, [
@@ -305,7 +307,7 @@
                 menu.addAction(
                     self.tr("Make Migrations (dry-run)"),
                     lambda: self.__makeMigrations(dryRun=True))\
-                .setEnabled(len(selApps) > 0)
+                    .setEnabled(len(selApps) > 0)
         else:
             menu.addAction(self.tr("Apply Selected Migrations"),
                            self.__applyMigration)

eric ide

mercurial