def value_to_db_datetime(self, value):
        if value is None:
            return None
        return six.text_type(value)
Transform a datetime value to an object compatible with what is expected
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/db/backends/__init__.py/BaseDatabaseOperations.value_to_db_datetime