Files
edx-platform/lms/djangoapps/verify_student/admin.py
2018-06-25 12:08:54 +05:00

40 lines
1.3 KiB
Python

# encoding: utf-8
"""
Admin site configurations for verify_student.
"""
from django.contrib import admin
from lms.djangoapps.verify_student.models import SoftwareSecurePhotoVerification, SSOVerification, ManualVerification
@admin.register(SoftwareSecurePhotoVerification)
class SoftwareSecurePhotoVerificationAdmin(admin.ModelAdmin):
"""
Admin for the SoftwareSecurePhotoVerification table.
"""
list_display = ('id', 'user', 'status', 'receipt_id', 'submitted_at', 'updated_at',)
raw_id_fields = ('user', 'reviewing_user', 'copy_id_photo_from',)
search_fields = ('receipt_id', 'user__username',)
@admin.register(SSOVerification)
class SSOVerificationAdmin(admin.ModelAdmin):
"""
Admin for the SSOVerification table.
"""
list_display = ('id', 'user', 'status', 'identity_provider_slug', 'created_at', 'updated_at',)
readonly_fields = ('user', 'identity_provider_slug', 'identity_provider_type',)
raw_id_fields = ('user',)
search_fields = ('user__username', 'identity_provider_slug',)
@admin.register(ManualVerification)
class ManualVerificationAdmin(admin.ModelAdmin):
"""
Admin for the ManualVerification table.
"""
list_display = ('id', 'user', 'status', 'reason', 'created_at', 'updated_at',)
raw_id_fields = ('user',)
search_fields = ('user__username', 'reason',)