def __setattr__(self, name, value):
if name not in self.updateable_fields:<EOL><INDENT>raise Exception("<STR_LIT>".format(name))<EOL><DEDENT>else:<EOL><INDENT>object.__setattr__(self, name, value)<EOL><DEDENT>
Override to prevent updating readonly fields.