Commit 41862cf1 by Nimisha Asthagiri Committed by GitHub

Merge pull request #16035 from…

Merge pull request #16035 from proversity-org/proverity/NVN-enrollment-search-instructor-dashboard-fix

FIX: course enrollment search, FIX: hidden tabs on instructor dashboard
parents e2612bdc f2d51639
......@@ -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')
......
......@@ -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'] %>
<li class="nav-item"><button type="button" class="btn-link ${ section_data['section_key'] }${' hidden' if is_hidden else ''}" data-section="${ section_data['section_key'] }">${_(dname)}</button></li>
% if not is_hidden:
<li class="nav-item"><button type="button" class="btn-link ${ section_data['section_key'] }${' hidden' if is_hidden else ''}" data-section="${ section_data['section_key'] }">${_(dname)}</button></li>
% endif
% endfor
</ul>
......
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