Commit 01f61a30 authored by Laury Bueno's avatar Laury Bueno
Browse files

[Certification] Improve admin interface to better management

parent bd65f027
...@@ -7,7 +7,22 @@ from .models import ( ...@@ -7,7 +7,22 @@ from .models import (
Evaluation, Evaluation,
) )
admin.site.register(CourseCertification) @admin.register(CertificateTemplate)
admin.site.register(CertificateTemplate) class CertificateTemplateAdmin(admin.ModelAdmin):
list_display = ('course', 'document_type', 'workspace')
@admin.register(CourseCertification)
class CourseCertificationAdmin(admin.ModelAdmin):
list_display = ('course_student', 'type', 'link_hash', 'created_date', 'modified_date')
autocomplete_fields = (
'course_student',
)
search_fields = (
'link_hash',
'course_student__user__name',
'course_student__user__username',
)
admin.site.register(CertificationProcess) admin.site.register(CertificationProcess)
admin.site.register(Evaluation) admin.site.register(Evaluation)
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