def save(self, *args, **kwargs):
self.name = str(self.parent.name) + "<STR_LIT>" + str(self.child.name) + "<STR_LIT>" + str(self.ownership_type)<EOL>if self.amount > <NUM_LIT:100>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>elif self.amount < <NUM_LIT:0>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>super(Ownership, self).save(*args, **kwargs)<EOL><DEDENT>
Generate a name, and ensure amount is less than or equal to 100