Fixed #19176 -- Typo in copy-pasted error message.
Thanks maxirobaina for the report.
This commit is contained in:
parent
9fd2f9c5f3
commit
c736a1a9f8
|
@ -65,7 +65,7 @@ def adapt_datetime_with_timezone_support(value, conv):
|
||||||
# Equivalent to DateTimeField.get_db_prep_value. Used only by raw SQL.
|
# Equivalent to DateTimeField.get_db_prep_value. Used only by raw SQL.
|
||||||
if settings.USE_TZ:
|
if settings.USE_TZ:
|
||||||
if timezone.is_naive(value):
|
if timezone.is_naive(value):
|
||||||
warnings.warn("SQLite received a naive datetime (%s)"
|
warnings.warn("MySQL received a naive datetime (%s)"
|
||||||
" while time zone support is active." % value,
|
" while time zone support is active." % value,
|
||||||
RuntimeWarning)
|
RuntimeWarning)
|
||||||
default_timezone = timezone.get_default_timezone()
|
default_timezone = timezone.get_default_timezone()
|
||||||
|
|
Loading…
Reference in New Issue