"""
Admin views for Dashboard
"""

from django.contrib import admin

from dashboard.models import ProgramEnrollment


class ProgramEnrollmentAdmin(admin.ModelAdmin):
    """ModelAdmin for ProgramEnrollment"""
    list_display = ('user', 'program',)
    list_filter = ('program', 'program__live',)

admin.site.register(ProgramEnrollment, ProgramEnrollmentAdmin)

@@ -289,16 +289,123 @@
 _live',)
+%0A    raw_id_fields = ('user',)%0A    search_fields = (%0A        'user__username',%0A        'user__email',%0A    )
 %0A%0Aadmin.

improve program enrollments admin (#4099)