diff --git a/easyaudit/utils.py b/easyaudit/utils.py index dc0b8479..5f9e5fa7 100644 --- a/easyaudit/utils.py +++ b/easyaudit/utils.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -from uuid import UUID +import datetime as dt from django.conf import settings from django.core.exceptions import ObjectDoesNotExist @@ -25,7 +25,7 @@ def get_field_value(obj, field): try: value = field.to_python(getattr(obj, field.name, None)) if value is not None and settings.USE_TZ and not timezone.is_naive(value): - value = timezone.make_naive(value, timezone=timezone.utc) + value = timezone.make_naive(value, timezone=dt.timezone.utc) except ObjectDoesNotExist: value = field.default if field.default is not NOT_PROVIDED else None else: