-
Notifications
You must be signed in to change notification settings - Fork 129
Open
Description
Hi!
I have ES document with date field and corresponding Django model DateTimeField. However, when i'm trying to retrieve document via drf, it returns datetime.date object, not datetime.datetime, how expected.
In debug mode i found, that serializer gets field values through DictionaryProxy (utils.py):
Why it should convert datetime.datetime to datetime.date?
Miserlou and NoelJames