-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(siae): répare la génération des Siae.kind constants (#1087)
- Loading branch information
Showing
5 changed files
with
112 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Generated by Django 4.2.9 on 2024-02-19 10:03 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("siaes", "0070_alter_siae_kind"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="siae", | ||
name="kind", | ||
field=models.CharField( | ||
choices=[ | ||
("EI", "Entreprise d'insertion (EI)"), | ||
("AI", "Association intermédiaire (AI)"), | ||
("ACI", "Atelier chantier d'insertion (ACI)"), | ||
("ETTI", "Entreprise de travail temporaire d'insertion (ETTI)"), | ||
("EITI", "Entreprise d'insertion par le travail indépendant (EITI)"), | ||
("GEIQ", "Groupement d'employeurs pour l'insertion et la qualification (GEIQ)"), | ||
("SEP", "Produits et services réalisés en prison (SEP)"), | ||
("EA", "Entreprise adaptée (EA)"), | ||
("EATT", "Entreprise adaptée de travail temporaire (EATT)"), | ||
("ESAT", "Etablissement et service d'aide par le travail (ESAT)"), | ||
], | ||
db_index=True, | ||
default="EI", | ||
max_length=6, | ||
verbose_name="Type de structure", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Generated by Django 4.2.9 on 2024-02-19 10:03 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("stats", "0009_alter_tracker_siae_kind"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="tracker", | ||
name="siae_kind", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
("EI", "Entreprise d'insertion (EI)"), | ||
("AI", "Association intermédiaire (AI)"), | ||
("ACI", "Atelier chantier d'insertion (ACI)"), | ||
("ETTI", "Entreprise de travail temporaire d'insertion (ETTI)"), | ||
("EITI", "Entreprise d'insertion par le travail indépendant (EITI)"), | ||
("GEIQ", "Groupement d'employeurs pour l'insertion et la qualification (GEIQ)"), | ||
("SEP", "Produits et services réalisés en prison (SEP)"), | ||
("EA", "Entreprise adaptée (EA)"), | ||
("EATT", "Entreprise adaptée de travail temporaire (EATT)"), | ||
("ESAT", "Etablissement et service d'aide par le travail (ESAT)"), | ||
], | ||
max_length=6, | ||
), | ||
), | ||
] |
39 changes: 39 additions & 0 deletions
39
lemarche/tenders/migrations/0077_alter_tender_siae_kind.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Generated by Django 4.2.9 on 2024-02-19 10:03 | ||
|
||
from django.db import migrations, models | ||
|
||
import lemarche.utils.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("tenders", "0076_alter_tender_constraints"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="tender", | ||
name="siae_kind", | ||
field=lemarche.utils.fields.ChoiceArrayField( | ||
base_field=models.CharField( | ||
choices=[ | ||
("EI", "Entreprise d'insertion"), | ||
("AI", "Association intermédiaire"), | ||
("ACI", "Atelier chantier d'insertion"), | ||
("ETTI", "Entreprise de travail temporaire d'insertion"), | ||
("EITI", "Entreprise d'insertion par le travail indépendant"), | ||
("GEIQ", "Groupement d'employeurs pour l'insertion et la qualification"), | ||
("SEP", "Produits et services réalisés en prison"), | ||
("EA", "Entreprise adaptée"), | ||
("EATT", "Entreprise adaptée de travail temporaire"), | ||
("ESAT", "Etablissement et service d'aide par le travail"), | ||
], | ||
max_length=20, | ||
), | ||
blank=True, | ||
default=list, | ||
size=None, | ||
verbose_name="Type de structure", | ||
), | ||
), | ||
] |