<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_classes(self):

 		"""Set field properties and custom classes.
 		"""

		# Custom field classes on field wrapper
		if self.attrs.get("_field_class"):
			self.values["class"].append(escape(self.attrs.get("_field_class")))

		# Inline class
		if self.attrs.get("_inline"):
			self.values["class"].append("inline")

		# Disabled class
		if self.field.field.disabled:
			self.values["class"].append("disabled")

		# Required class
		if self.field.field.required and not self.attrs.get("_no_required"):
			self.values["class"].append("required")
		elif self.attrs.get("_required") and not self.field.field.required:
			self.values["class"].append("required")