@property
def is_valid(self):
    if ((self.upgrade or self.upgrade_patch) and (self.instance == self.infra.instances.all()[0])):
        return True
    return False
@property
def is_valid(self):
    if ((self.upgrade or self.upgrade_patch) and (self.instance == self.infra.instances.all()[0])):
        return True
    return False