Add Student.instructor2 relation

This commit is contained in:
Claude Paroz 2020-09-11 11:42:24 +02:00
parent cbbcc2c5ca
commit 20b8459a6b
4 changed files with 26 additions and 2 deletions

View file

@ -161,7 +161,7 @@ class StudentAdmin(admin.ModelAdmin):
ordering = ('last_name', 'first_name')
list_filter = (('archived', ArchivedListFilter), ('klass', KlassRelatedListFilter))
search_fields = ('last_name', 'first_name', 'pcode', 'city', 'klass__name')
autocomplete_fields = ('corporation', 'instructor', 'supervisor', 'mentor')
autocomplete_fields = ('corporation', 'instructor', 'instructor2', 'supervisor', 'mentor')
readonly_fields = ('report_sem1_sent', 'report_sem2_sent', 'mentor_indemn')
fieldsets = [
(None, {
@ -172,7 +172,7 @@ class StudentAdmin(admin.ModelAdmin):
('klass', 'option_ase'),
('report_sem1', 'report_sem1_sent'),
('report_sem2', 'report_sem2_sent'),
('corporation', 'instructor',)
('corporation', 'instructor', 'instructor2')
)}
),
("Procédure de qualification", {