debug suivi étudiant + ajout du required sur sRef
All checks were successful
Build and Push Docker Image / build (push) Successful in 3m29s
All checks were successful
Build and Push Docker Image / build (push) Successful in 3m29s
This commit is contained in:
@@ -77,10 +77,10 @@ class _cl_Student_eval_admin(SummernoteModelAdmin):
|
||||
|
||||
fieldsets = (
|
||||
('Informations générales', {
|
||||
'fields': ('Student','nEval_Type','dtDate')
|
||||
'fields': ('Student','nEval_Type','dtDate','sRef')
|
||||
}),
|
||||
("Information propre à l'intervention ou exercice", {
|
||||
'fields': ('sRef','sInter_Desc', 'nInter_Nature', 'nInter_Priority', 'nInter_Complexity', 'nStudent_Role')
|
||||
'fields': (,'sInter_Desc', 'nInter_Nature', 'nInter_Priority', 'nInter_Complexity', 'nStudent_Role')
|
||||
}),
|
||||
("Appréciation de l'étudiant/stagiaire", {
|
||||
'fields': ("nEval_Mode", "sDesc_neg", 'sDesc_pos', "sDesc_global")
|
||||
|
@@ -66,7 +66,7 @@ class cl_Student_eval(models.Model):
|
||||
#Information sur le suivi
|
||||
nEval_Type = models.CharField('Type de suivi', max_length=1, choices=EVAL_TYPE, default=0)
|
||||
dtDate = models.DateField("Date concernée", default=timezone.now)
|
||||
sRef = models.CharField("N° de référence / FIP", max_length=120, blank=True,)
|
||||
sRef = models.CharField("N° de référence / FIP / Date de la journée", max_length=120)
|
||||
nEval_Mode = models.CharField('Mode de suivi ', max_length=1, choices=EVAL_MODE, default=0)
|
||||
sDesc_neg = models.TextField("Points à améliorer")
|
||||
sDesc_pos = models.TextField("Points positifs")
|
||||
@@ -99,10 +99,11 @@ class cl_Student_eval(models.Model):
|
||||
def get_ref_of_eval(self):
|
||||
sRet = ""
|
||||
|
||||
if int(self.nEval_Type) == 1:
|
||||
sRet = self.sRef
|
||||
elif int(self.nEval_Type) == 2:
|
||||
if int(self.nEval_Type) == 2:
|
||||
sRet = self.dtDate.strftime("%d.%b.%Y")
|
||||
else:
|
||||
sRet = self.sRef
|
||||
|
||||
|
||||
|
||||
#print(sRet)
|
||||
|
Reference in New Issue
Block a user