mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
fix import of utc
This commit is contained in:
parent
5436df54c6
commit
5717e853db
|
@ -316,8 +316,8 @@ def set_many(instance, field, value):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# A `utc` instance is available in Django 1.11+
|
# A `utc` instance is available in Django 1.11+
|
||||||
from django.timezone import utc
|
from django.utils.timezone import utc
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# A `UTC` class is available in older versions
|
# A `UTC` class is available in older versions
|
||||||
from django.timezone import UTC
|
from django.utils.timezone import UTC
|
||||||
utc = UTC()
|
utc = UTC()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user