

def save(self, *args, **kwargs):
    if ((not self.kind) or (not self.capacity) or (self.vacancy < 0) or (not self.make) or (not self.model_name)):
        raise IntegrityError('Attributes kind, capacity, vacancy, make, model_name MUST be given.')
    super(Modality, self).save(*args, **kwargs)

dataset/ETHPy150Open dgraziotin/dycapo/server/models/modality.py Modality.save/original