1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-29 15:01:04 +02:00

Patch observer oral min note

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-07-11 10:27:52 +02:00
parent 1b24e90635
commit f327a4c9c4
2 changed files with 46 additions and 2 deletions

View File

@ -1545,7 +1545,7 @@ class Pool(models.Model):
for i in range(passages.count()):
for j in range(passage_width):
column = getcol(min_column + i * passage_width + j)
min_note = 0
min_note = 0 if j < 7 else -10
max_note = 20 if j < 2 and settings.TFJM_APP == "TFJM" else 10
format_requests.append({
"setDataValidation": {
@ -2055,7 +2055,7 @@ class Note(models.Model):
default=0,
)
observer_oral = models.PositiveSmallIntegerField(
observer_oral = models.SmallIntegerField(
verbose_name=_("observer oral note"),
choices=[(i, i) for i in range(-10, 11)],
default=0,