diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py
index c41d4ea..1c24c7c 100644
a
|
b
|
class DateTimeField(DateField):
|
1400 | 1400 | # For backwards compatibility, interpret naive datetimes in local |
1401 | 1401 | # time. This won't work during DST change, but we can't do much |
1402 | 1402 | # about it, so we let the exceptions percolate up the call stack. |
1403 | | warnings.warn("DateTimeField %s.%s received a naive datetime (%s)" |
| 1403 | name = '%s.%s' % (self.model.__name__, self.name) \ |
| 1404 | if hasattr(self, 'model') else '(unbound)' |
| 1405 | warnings.warn("DateTimeField %s received a naive datetime (%s)" |
1404 | 1406 | " while time zone support is active." % |
1405 | | (self.model.__name__, self.name, value), |
| 1407 | (name, value), |
1406 | 1408 | RuntimeWarning) |
1407 | 1409 | default_timezone = timezone.get_default_timezone() |
1408 | 1410 | value = timezone.make_aware(value, default_timezone) |