diff options
| author | Susan Tan <onceuponatimeforever@gmail.com> | 2016-04-03 15:34:15 +0200 |
|---|---|---|
| committer | Markus Holtermann <info@markusholtermann.eu> | 2016-04-03 17:12:55 +0200 |
| commit | b0803d64c4cd24c580a503cfe268e521128f45d7 (patch) | |
| tree | 4a83728be4e28f8f3ccf1ee754ec6e9dbb44d544 | |
| parent | b28c60529bfa94702a50990fc2d40faa837fca9c (diff) | |
Fixed #26075 -- Added clearer wording for one-off values in makemigrations
| -rw-r--r-- | django/db/migrations/questioner.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/django/db/migrations/questioner.py b/django/db/migrations/questioner.py index 32fa40db08..0315df0630 100644 --- a/django/db/migrations/questioner.py +++ b/django/db/migrations/questioner.py @@ -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)"), |
