def value_to_db_datetime(self, value):
        if value is None:
            return None
        return unicode(value)
Transform a datetime value to an object compatible with what is expected
dataset/ETHPy150Open dcramer/django-compositepks/django/db/backends/__init__.py/BaseDatabaseOperations.value_to_db_datetime