mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-30 13:34:00 +03:00
Merge branch 'master' into writable-nested-modelserializer
This commit is contained in:
commit
05d8a90e94
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,6 +4,7 @@
|
||||||
.*
|
.*
|
||||||
|
|
||||||
html/
|
html/
|
||||||
|
htmlcov/
|
||||||
coverage/
|
coverage/
|
||||||
build/
|
build/
|
||||||
dist/
|
dist/
|
||||||
|
|
|
@ -494,7 +494,8 @@ try:
|
||||||
if provider_version in ('0.2.3', '0.2.4'):
|
if provider_version in ('0.2.3', '0.2.4'):
|
||||||
# 0.2.3 and 0.2.4 are supported version that do not support
|
# 0.2.3 and 0.2.4 are supported version that do not support
|
||||||
# timezone aware datetimes
|
# timezone aware datetimes
|
||||||
from datetime.datetime import now as provider_now
|
import datetime
|
||||||
|
provider_now = datetime.datetime.now
|
||||||
else:
|
else:
|
||||||
# Any other supported version does use timezone aware datetimes
|
# Any other supported version does use timezone aware datetimes
|
||||||
from django.utils.timezone import now as provider_now
|
from django.utils.timezone import now as provider_now
|
||||||
|
|
Loading…
Reference in New Issue
Block a user