

@classmethod
def serialize(cls, instance, fields=None):
    data_dict = super(DeploymentHistorySerializer, cls).serialize(instance, fields)
    if instance.time_start:
        data_dict['time_start'] = instance.time_start.isoformat()
    if instance.time_end:
        data_dict['time_end'] = instance.time_end.isoformat()
    return data_dict

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/objects/serializers/deployment_history.py DeploymentHistorySerializer.serialize/original