def get_field(self, fieldname):
		if not self._fields:
			for f in self.get("fields"):
				self._fields[f.fieldname] = f

		return self._fields.get(fieldname)
Return docfield from meta
dataset/ETHPy150Open frappe/frappe/frappe/model/meta.py/Meta.get_field