'Returns a boolean value regarding whether a course has already reached it\'s max enrollment
capacity'

def is_course_full(self, course):

    is_course_full = False
    if (course.max_student_enrollments_allowed is not None):
        is_course_full = (self.num_enrolled_in_exclude_admins(course.id) >= course.max_student_enrollments_allowed)
    return is_course_full
