'Transform a time value to an object compatible with what is expected
by the backend driver for time columns.'

def value_to_db_time(self, value):

    if (value is None):
        return None
    if timezone.is_aware(value):
        raise ValueError('Django    does    not    support    timezone-aware    times.')
    return six.text_type(value)
