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

@ -293,6 +293,8 @@ class Student(models.Model):
on_delete=models.SET_NULL, verbose_name='Employeur')
instructor = models.ForeignKey('CorpContact', null=True, blank=True,
on_delete=models.SET_NULL, verbose_name='FEE/FPP')
instructor2 = models.ForeignKey('CorpContact', null=True, blank=True, related_name='rel_instructor2',
on_delete=models.SET_NULL, verbose_name='FEE/FPP (2)')
supervisor = models.ForeignKey('CorpContact', related_name='rel_supervisor', verbose_name='Superviseur',
null=True, blank=True, on_delete=models.SET_NULL)
supervision_attest_received = models.BooleanField('Attest. supervision reçue',