Fixed #26443 -- Corrected timezone.now in MigrationQuestioner prompt
This commit is contained in:
parent
d2569f89f2
commit
394755b8d9
|
@ -103,7 +103,7 @@ class InteractiveMigrationQuestioner(MigrationQuestioner):
|
||||||
|
|
||||||
def _ask_default(self):
|
def _ask_default(self):
|
||||||
print("Please enter the default value now, as valid Python")
|
print("Please enter the default value now, as valid Python")
|
||||||
print("The datetime and django.utils.timezone modules are available, so you can do e.g. timezone.now()")
|
print("The datetime and django.utils.timezone modules are available, so you can do e.g. timezone.now")
|
||||||
while True:
|
while True:
|
||||||
if six.PY3:
|
if six.PY3:
|
||||||
# Six does not correctly abstract over the fact that
|
# Six does not correctly abstract over the fact that
|
||||||
|
|
Loading…
Reference in New Issue