Commit b0803d64 authored by Susan Tan's avatar Susan Tan Committed by Markus Holtermann
Browse files

Fixed #26075 -- Added clearer wording for one-off values in makemigrations

parent b28c6052
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -130,7 +130,8 @@ class InteractiveMigrationQuestioner(MigrationQuestioner):
                "we can't do that (the database needs something to populate existing rows).\n"
                "Please select a fix:" % (field_name, model_name),
                [
                    "Provide a one-off default now (will be set on all existing rows)",
                    ("Provide a one-off default now (will be set on all existing "
                     "rows with a null value for this column)"),
                    "Quit, and let me add a default in models.py",
                ]
            )
@@ -149,7 +150,8 @@ class InteractiveMigrationQuestioner(MigrationQuestioner):
                "populate existing rows).\n"
                "Please select a fix:" % (field_name, model_name),
                [
                    "Provide a one-off default now (will be set on all existing rows)",
                    ("Provide a one-off default now (will be set on all existing "
                     "rows with a null value for this column)"),
                    ("Ignore for now, and let me handle existing rows with NULL myself "
                     "(e.g. because you added a RunPython or RunSQL operation to handle "
                     "NULL values in a previous data migration)"),