diff --git a/dags/sources/config/shared_constants.py b/dags/sources/config/shared_constants.py index bf6c9961..1a15dbe9 100755 --- a/dags/sources/config/shared_constants.py +++ b/dags/sources/config/shared_constants.py @@ -6,7 +6,7 @@ # Suggestion statuts (pour cohorte et unitaire) SUGGESTION_AVALIDER = "AVALIDER" -SUGGESTION_REJETER = "REJETER" +SUGGESTION_REJETEE = "REJETEE" SUGGESTION_PARTIEL = "PARTIEL" SUGGESTION_ATRAITER = "ATRAITER" SUGGESTION_ENCOURS = "ENCOURS" diff --git a/data/migrations/0002_tables_suggestion.py b/data/migrations/0002_tables_suggestion.py index 670188d6..ee6b3047 100644 --- a/data/migrations/0002_tables_suggestion.py +++ b/data/migrations/0002_tables_suggestion.py @@ -58,7 +58,7 @@ class Migration(migrations.Migration): models.CharField( choices=[ ("AVALIDER", "À valider"), - ("REJETER", "Rejeter"), + ("REJETEE", "Rejetée"), ("ATRAITER", "À traiter"), ("ENCOURS", "En cours de traitement"), ("ERREUR", "Fini en erreur"), @@ -102,7 +102,7 @@ class Migration(migrations.Migration): models.CharField( choices=[ ("AVALIDER", "À valider"), - ("REJETER", "Rejeter"), + ("REJETEE", "Rejetée"), ("ATRAITER", "À traiter"), ("ENCOURS", "En cours de traitement"), ("ERREUR", "Fini en erreur"), diff --git a/data/models.py b/data/models.py index 7bb9afe6..521b87af 100644 --- a/data/models.py +++ b/data/models.py @@ -8,7 +8,7 @@ SUGGESTION_ENCOURS, SUGGESTION_ERREUR, SUGGESTION_PARTIEL, - SUGGESTION_REJETER, + SUGGESTION_REJETEE, SUGGESTION_SOURCE_AJOUT, SUGGESTION_SOURCE_MISESAJOUR, SUGGESTION_SOURCE_SUPRESSION, @@ -19,7 +19,7 @@ class SuggestionStatut(models.TextChoices): AVALIDER = SUGGESTION_AVALIDER, "À valider" - REJETER = SUGGESTION_REJETER, "Rejeter" + REJETEE = SUGGESTION_REJETEE, "Rejetée" ATRAITER = SUGGESTION_ATRAITER, "À traiter" ENCOURS = SUGGESTION_ENCOURS, "En cours de traitement" ERREUR = SUGGESTION_ERREUR, "Fini en erreur" diff --git a/data/views.py b/data/views.py index b6ab0e7f..4eedabff 100644 --- a/data/views.py +++ b/data/views.py @@ -51,7 +51,7 @@ def form_valid(self, form): new_status = ( SuggestionStatut.ATRAITER.value if self.request.POST.get("dag_valid") == "1" - else SuggestionStatut.REJETER.value + else SuggestionStatut.REJETEE.value ) suggestion_cohorte.suggestion_unitaires.all().update(statut=new_status) diff --git a/docs/reference/303-systeme-de-suggestions.md b/docs/reference/303-systeme-de-suggestions.md index dc2f7e06..4eea2482 100644 --- a/docs/reference/303-systeme-de-suggestions.md +++ b/docs/reference/303-systeme-de-suggestions.md @@ -27,7 +27,7 @@ title: Cycle de vie d'une suggestion (cohorte et unitaire) flowchart TB AVALIDER[À valider] --> ATRAITER[À traiter] --> ENCOURS[En cours de traitement] --> SUCCES[Fini avec succès] - AVALIDER[À valider] --> REJETER[Rejeter] + AVALIDER[À valider] --> REJETEE[Rejetée] ENCOURS --> PARTIEL[Fini avec succès partiel] ENCOURS --> ERREUR[Fini en erreur] ```