You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

13 lines
372 B

from django.contrib import admin
from apps.certificate.models import Certificate
@admin.register(Certificate)
class CertificateAdmin(admin.ModelAdmin):
list_display = ['student', 'course', 'status', 'created_at']
list_filter = ['status', 'created_at']
search_fields = ['user__username', 'course__title']
readonly_fields = ['created_at', 'updated_at']