diff --git a/common/djangoapps/student/admin.py b/common/djangoapps/student/admin.py index 561121c8e2..c0e92ed74c 100644 --- a/common/djangoapps/student/admin.py +++ b/common/djangoapps/student/admin.py @@ -155,7 +155,7 @@ class CourseEnrollmentAdmin(admin.ModelAdmin): list_display = ('id', 'course_id', 'mode', 'user', 'is_active',) list_filter = ('mode', 'is_active',) raw_id_fields = ('user',) - search_fields = ('course_id', 'mode', 'user__username',) + search_fields = ('course__id', 'mode', 'user__username',) def queryset(self, request): return super(CourseEnrollmentAdmin, self).queryset(request).select_related('user') diff --git a/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html b/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html index 32f8b00439..aa10e49eed 100644 --- a/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html +++ b/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html @@ -123,7 +123,9 @@ from openedx.core.djangolib.markup import HTML <% is_hidden = section_data.get('is_hidden', False) %> ## This is necessary so we don't scrape 'section_display_name' as a string. <% dname = section_data['section_display_name'] %> -
+ % if not is_hidden: + + % endif % endfor