def compress(self, data_list):
        """
        Takes the values from the MultiWidget and passes them as a
        list to this function. This function needs to compress the
        list into a single object to save.
        """
        if data_list:
            if not (data_list[0] and data_list[1]):
                raise forms.ValidationError("Field is missing data.")
            return datetime.datetime.combine(*data_list)
        return None
dataset/ETHPy150Open benadida/helios-server/helios/fields.py/SplitDateTimeField.compress/original