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 """ |