From e1431dd92e78c916ab8ba42c1c40bb143bc57d4d Mon Sep 17 00:00:00 2001 From: Cole D <104338788+dylancdavis@users.noreply.github.com> Date: Fri, 26 Apr 2024 08:50:47 -0400 Subject: [PATCH] Made confirmation prompt in squashmigrations consistent with other prompts. Prior to this change, squashmigrations would use a [yN] prompt to ask for user confirmation. A slash was added between the yes/no options to make it consistent with other commands that print similar prompts. --- django/core/management/commands/squashmigrations.py | 2 +- docs/topics/migrations.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django/core/management/commands/squashmigrations.py b/django/core/management/commands/squashmigrations.py index 6571cbc2e2..6b5ddeeba5 100644 --- a/django/core/management/commands/squashmigrations.py +++ b/django/core/management/commands/squashmigrations.py @@ -123,7 +123,7 @@ class Command(BaseCommand): if self.interactive: answer = None while not answer or answer not in "yn": - answer = input("Do you wish to proceed? [yN] ") + answer = input("Do you wish to proceed? [y/N] ") if not answer: answer = "n" break diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt index 5fb5019c1e..ef8fc577f5 100644 --- a/docs/topics/migrations.txt +++ b/docs/topics/migrations.txt @@ -703,7 +703,7 @@ app label and migration name you want to squash up to, and it'll get to work: - 0002_some_change - 0003_another_change - 0004_undo_something - Do you wish to proceed? [yN] y + Do you wish to proceed? [y/N] y Optimizing... Optimized from 12 operations to 7 operations. Created new squashed migration /home/andrew/Programs/DjangoTest/test/migrations/0001_squashed_0004_undo_something.py