"""
Admin views for Roles
"""

from django.contrib import admin

from roles.models import Role


class RoleAdmin(admin.ModelAdmin):
    """ModelAdmin for Roles"""
    list_display = ('user', 'program', 'role', )

admin.site.register(Role, RoleAdmin)

"""
Admin views for Roles
"""

from django.contrib import admin

from roles.models import Role


class RoleAdmin(admin.ModelAdmin):
    """ModelAdmin for Roles"""
    list_display = ('user', 'program', 'role', )
    raw_id_fields = ('user', )

admin.site.register(Role, RoleAdmin)

use the raw id for user in admin instead of drop-down (#4088)