Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses
Commits
01f61a30
Commit
01f61a30
authored
Sep 16, 2020
by
Laury Bueno
Browse files
[Certification] Improve admin interface to better management
parent
bd65f027
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
courses/certification/admin.py
courses/certification/admin.py
+17
-2
No files found.
courses/certification/admin.py
View file @
01f61a30
...
...
@@ -7,7 +7,22 @@ from .models import (
Evaluation
,
)
admin
.
site
.
register
(
CourseCertification
)
admin
.
site
.
register
(
CertificateTemplate
)
@
admin
.
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
(
Evaluation
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment