class documentation
class MigrationQuestioner: (source)
Known subclasses: django.db.migrations.questioner.InteractiveMigrationQuestioner
, django.db.migrations.questioner.NonInteractiveMigrationQuestioner
Give the autodetector responses to questions it might have. This base class has a built-in noninteractive mode, but the interactive subclass is what the command-line arguments will use.
Method | __init__ |
Undocumented |
Method | ask |
Adding an auto_now_add field to a model. |
Method | ask |
Should we create an initial migration for the app? |
Method | ask |
Should these migrations really be merged? |
Method | ask |
Adding a NOT NULL field to a model. |
Method | ask |
Changing a NULL field to NOT NULL. |
Method | ask |
Was this field really renamed? |
Method | ask |
Was this model really renamed? |
Method | ask |
Adding a unique field with a callable default. |
Instance Variable | defaults |
Undocumented |
Instance Variable | dry |
Undocumented |
Instance Variable | specified |
Undocumented |
overridden in
django.db.migrations.questioner.InteractiveMigrationQuestioner
, django.db.migrations.questioner.NonInteractiveMigrationQuestioner
Adding an auto_now_add field to a model.
overridden in
django.db.migrations.questioner.InteractiveMigrationQuestioner
, django.db.migrations.questioner.NonInteractiveMigrationQuestioner
Adding a NOT NULL field to a model.
overridden in
django.db.migrations.questioner.InteractiveMigrationQuestioner
, django.db.migrations.questioner.NonInteractiveMigrationQuestioner
Changing a NULL field to NOT NULL.