Skip to content

Commit

Permalink
REJETER -> REJETEE
Browse files Browse the repository at this point in the history
  • Loading branch information
kolok committed Jan 20, 2025
1 parent 93f5866 commit e3a1fa6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dags/sources/config/shared_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions data/migrations/0002_tables_suggestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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"),
Expand Down
4 changes: 2 additions & 2 deletions data/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
SUGGESTION_ENCOURS,
SUGGESTION_ERREUR,
SUGGESTION_PARTIEL,
SUGGESTION_REJETER,
SUGGESTION_REJETEE,
SUGGESTION_SOURCE_AJOUT,
SUGGESTION_SOURCE_MISESAJOUR,
SUGGESTION_SOURCE_SUPRESSION,
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion data/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/303-systeme-de-suggestions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
```

0 comments on commit e3a1fa6

Please sign in to comment.