ProjectDjango/DjangoMigrationsListDialog.py

changeset 169
b8f263e05c39
parent 168
c6182aab51e9
child 172
ea7980ded4f3
--- a/ProjectDjango/DjangoMigrationsListDialog.py	Wed Dec 30 11:02:06 2020 +0100
+++ b/ProjectDjango/DjangoMigrationsListDialog.py	Sat Apr 24 11:25:03 2021 +0200
@@ -39,7 +39,7 @@
         @param parent reference to the parent widget
         @type QWidget
         """
-        super(DjangoMigrationsListDialog, self).__init__(parent)
+        super().__init__(parent)
         self.setupUi(self)
         
         self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
@@ -376,16 +376,12 @@
                 apps.append(itm.text(0))
         
         if apps:
-            if self.__django.getDjangoVersion() >= (1, 8, 0):
-                migration, ok = QInputDialog.getText(
-                    self,
-                    self.tr("Make Migrations"),
-                    self.tr("Enter a name for the migrations (leave empty to"
-                            " use system supplied name):"),
-                    QLineEdit.Normal)
-            else:
-                migration = ""
-                ok = True
+            migration, ok = QInputDialog.getText(
+                self,
+                self.tr("Make Migrations"),
+                self.tr("Enter a name for the migrations (leave empty to"
+                        " use system supplied name):"),
+                QLineEdit.Normal)
             
             if ok:
                 self.__django.makeMigrations(apps, migration, dryRun, empty,

eric ide

mercurial