def _is_small_course(course_key):
 is_small_course = False
 enrollment_count = CourseEnrollment.objects.num_enrolled_in(course_key)
 max_enrollment_for_buttons = settings.FEATURES.get('MAX_ENROLLMENT_INSTR_BUTTONS')
 if (max_enrollment_for_buttons is not None):
  is_small_course = (enrollment_count <= max_enrollment_for_buttons)
 return is_small_course

def _is_small_course ( course_key ) : is_small_course = False enrollment_count = CourseEnrollment . objects . num_enrolled_in ( course_key ) max_enrollment_for_buttons = settings . FEATURES . get ( 'MAX_ENROLLMENT_INSTR_BUTTONS' ) if ( max_enrollment_for_buttons is not None ) : is_small_course = ( enrollment_count <= max_enrollment_for_buttons ) return is_small_course
compares against max_enrollment_instr_buttons to determine if course enrollment is considered small .