def get_courses(self): if not self.courses: self.courses = Courses.get({"university-ids": {"$all": [self["short_name"]]}}) return self.courses
def get_courses(self): if not self.courses: return Courses.get({"instructor":self["name"]}) return self.courses