def set_classes(self):
<EOL>if self.attrs.get("<STR_LIT>"):<EOL><INDENT>self.values["<STR_LIT:class>"].append(escape(self.attrs.get("<STR_LIT>")))<EOL><DEDENT>if self.attrs.get("<STR_LIT>"):<EOL><INDENT>self.values["<STR_LIT:class>"].append("<STR_LIT>")<EOL><DEDENT>if self.field.field.disabled:<EOL><INDENT>self.values["<STR_LIT:class>"].append("<STR_LIT>")<EOL><DEDENT>if self.field.field.required and not self.attrs.get("<STR_LIT>"):<EOL><INDENT>self.values["<STR_LIT:class>"].append("<STR_LIT>")<EOL><DEDENT>elif self.attrs.get("<STR_LIT>") and not self.field.field.required:<EOL><INDENT>self.values["<STR_LIT:class>"].append("<STR_LIT>")<EOL><DEDENT>
Set field properties and custom classes.