fix import of utc

This commit is contained in:
Asif Saifuddin Auvi 2017-01-18 19:28:57 +06:00
parent 5436df54c6
commit 5717e853db

View File

@ -316,8 +316,8 @@ def set_many(instance, field, value):
try:
# A `utc` instance is available in Django 1.11+
from django.timezone import utc
from django.utils.timezone import utc
except ImportError:
# A `UTC` class is available in older versions
from django.timezone import UTC
from django.utils.timezone import UTC
utc = UTC()