class documentation

class MigrationQuestioner:

Known subclasses: django.db.migrations.questioner.InteractiveMigrationQuestioner, django.db.migrations.questioner.NonInteractiveMigrationQuestioner

View In Hierarchy

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​_auto​_now​_add​_addition Adding an auto_now_add field to a model.
Method ask​_initial Should we create an initial migration for the app?
Method ask​_merge Should these migrations really be merged?
Method ask​_not​_null​_addition Adding a NOT NULL field to a model.
Method ask​_not​_null​_alteration Changing a NULL field to NOT NULL.
Method ask​_rename Was this field really renamed?
Method ask​_rename​_model Was this model really renamed?
Instance Variable defaults Undocumented
Instance Variable dry​_run Undocumented
Instance Variable specified​_apps Undocumented
def __init__(self, defaults=None, specified_apps=None, dry_run=None):

Undocumented

def ask_auto_now_add_addition(self, field_name, model_name):
def ask_initial(self, app_label):
Should we create an initial migration for the app?
def ask_merge(self, app_label):
Should these migrations really be merged?
def ask_not_null_addition(self, field_name, model_name):
def ask_not_null_alteration(self, field_name, model_name):
def ask_rename(self, model_name, old_name, new_name, field_instance):
Was this field really renamed?
def ask_rename_model(self, old_model_state, new_model_state):
Was this model really renamed?
defaults =

Undocumented

dry_run =

Undocumented

specified_apps =

Undocumented