kopia lustrzana https://github.com/wagtail/wagtail
Accept any string beginning with 'y' as confirmation for import_redirects command
Fixes #12931pull/13089/head
rodzic
79c9f32889
commit
49f0b53733
|
@ -166,14 +166,14 @@ class Command(BaseCommand):
|
|||
|
||||
if ask:
|
||||
answer = get_input(
|
||||
"{}. Found {} -> {} Create? Y/n: ".format(
|
||||
"{}. Found {} -> {} Create? y/N: ".format(
|
||||
total,
|
||||
from_link,
|
||||
to_link,
|
||||
)
|
||||
)
|
||||
|
||||
if answer != "Y":
|
||||
if not answer.lower().startswith("y"):
|
||||
skipped += 1
|
||||
continue
|
||||
else:
|
||||
|
|
Ładowanie…
Reference in New Issue