ProjectDjango/DjangoMakeMigrationsDialog.py

branch
eric7
changeset 180
64339135bd61
parent 175
30cb5e553e7e
child 190
f394b11f9f31
equal deleted inserted replaced
179:8413c2429808 180:64339135bd61
14 14
15 class DjangoMakeMigrationsDialog(QDialog, Ui_DjangoMakeMigrationsDialog): 15 class DjangoMakeMigrationsDialog(QDialog, Ui_DjangoMakeMigrationsDialog):
16 """ 16 """
17 Class implementing a dialog to enter the data needed to make migrations. 17 Class implementing a dialog to enter the data needed to make migrations.
18 """ 18 """
19
19 def __init__(self, recentApps, parent=None): 20 def __init__(self, recentApps, parent=None):
20 """ 21 """
21 Constructor 22 Constructor
22 23
23 @param recentApps list of recently entered applications 24 @param recentApps list of recently entered applications
24 @type list of str 25 @type list of str
25 @param parent reference to the parent widget 26 @param parent reference to the parent widget
26 @type QWidget 27 @type QWidget
27 """ 28 """
28 super().__init__(parent) 29 super().__init__(parent)
29 self.setupUi(self) 30 self.setupUi(self)
30 31
31 self.applicationsComboBox.addItems(recentApps) 32 self.applicationsComboBox.addItems(recentApps)
32 33
33 def getData(self): 34 def getData(self):
34 """ 35 """
35 Public method to get the data for the migration. 36 Public method to get the data for the migration.
36 37
37 @return tuple containing the application names, a migration name, 38 @return tuple containing the application names, a migration name,
38 the dry-run flag, a flag for an empty migration and a flag 39 the dry-run flag, a flag for an empty migration and a flag
39 indicating to fix migration conflicts 40 indicating to fix migration conflicts
40 @rtype tuple of (str, str, bool, bool, bool) 41 @rtype tuple of (str, str, bool, bool, bool)
41 """ 42 """

eric ide

mercurial