Commit 16caf1cd by Carlos Andrés Rocha

Merge pull request #1177 from rocha/fix-enrollment-counts

Fix course enrollment count in instructor dashboard
parents 7e882575 2e7e3540
......@@ -76,7 +76,7 @@ def _section_course_info(course_id):
section_data['section_display_name'] = _('Course Info')
section_data['course_id'] = course_id
section_data['course_display_name'] = course.display_name
section_data['enrollment_count'] = CourseEnrollment.objects.filter(course_id=course_id).count()
section_data['enrollment_count'] = CourseEnrollment.objects.filter(course_id=course_id, is_active=1).count()
section_data['has_started'] = course.has_started()
section_data['has_ended'] = course.has_ended()
......
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