Commit 3dfdab1a by Adam

Merge pull request #1629 from edx/adam/fix/enrollment-count-intr-dash

makes beta dash count active users in enrollment count [AN-115]
parents dab25603 71b70bce
...@@ -5,6 +5,9 @@ These are notable changes in edx-platform. This is a rolling list of changes, ...@@ -5,6 +5,9 @@ These are notable changes in edx-platform. This is a rolling list of changes,
in roughly chronological order, most recent first. Add your entries at or near in roughly chronological order, most recent first. Add your entries at or near
the top. Include a label indicating the component affected. the top. Include a label indicating the component affected.
LMS: Beta instructor dashboard will only count actively enrolled students for
course enrollment numbers.
LMS: Users with is_staff=True no longer have the STAFF label appear on LMS: Users with is_staff=True no longer have the STAFF label appear on
their forum posts. their forum posts.
......
...@@ -108,7 +108,7 @@ def _section_course_info(course_id, access): ...@@ -108,7 +108,7 @@ def _section_course_info(course_id, access):
'course_num': course_num, 'course_num': course_num,
'course_name': course_name, 'course_name': course_name,
'course_display_name': course.display_name, 'course_display_name': course.display_name,
'enrollment_count': CourseEnrollment.objects.filter(course_id=course_id).count(), 'enrollment_count': CourseEnrollment.objects.filter(course_id=course_id, is_active=1).count(),
'has_started': course.has_started(), 'has_started': course.has_started(),
'has_ended': course.has_ended(), 'has_ended': course.has_ended(),
'list_instructor_tasks_url': reverse('list_instructor_tasks', kwargs={'course_id': course_id}), 'list_instructor_tasks_url': reverse('list_instructor_tasks', kwargs={'course_id': course_id}),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment