mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user