class documentation

class InteractiveMigrationQuestioner(MigrationQuestioner):

View In Hierarchy

Undocumented

Method ​_ask​_default Prompt for a default value.
Method ​_boolean​_input Undocumented
Method ​_choice​_input Undocumented
Method ask​_auto​_now​_add​_addition Adding an auto_now_add field to a model.
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?

Inherited from MigrationQuestioner:

Method __init__ Undocumented
Method ask​_initial Should we create an initial migration for the app?
Instance Variable defaults Undocumented
Instance Variable dry​_run Undocumented
Instance Variable specified​_apps Undocumented
def _ask_default(self, default=''):

Prompt for a default value.

The default argument allows providing a custom default value (as a string) which will be shown to the user and used as the return value if the user doesn't provide any other input.

def _boolean_input(self, question, default=None):

Undocumented

def _choice_input(self, question, choices):

Undocumented

def ask_auto_now_add_addition(self, field_name, model_name):
Adding an auto_now_add field to a model.
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):