-
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.
Merge branch 'feat/920_rename_production_site_type' into 'dev'
feat(sites): rename 'PRODUCTION SITE' to 'PRODUCTION BIOLIQUID' See merge request la-fabrique-numerique/biocarburants!262
- Loading branch information
Showing
6 changed files
with
51 additions
and
14 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,38 @@ | ||
# Generated by Django 5.0.6 on 2024-12-05 09:25 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
def update_site_type(apps, schema_editor): | ||
Site = apps.get_model("transactions", "Site") | ||
Site.objects.filter(site_type="PRODUCTION SITE").update(site_type="PRODUCTION BIOLIQUID") | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("transactions", "0007_depot_productionsite"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="site", | ||
name="site_type", | ||
field=models.CharField( | ||
choices=[ | ||
("OTHER", "Autre"), | ||
("EFS", "EFS"), | ||
("EFPE", "EFPE"), | ||
("OIL DEPOT", "OIL DEPOT"), | ||
("BIOFUEL DEPOT", "BIOFUEL DEPOT"), | ||
("HEAT PLANT", "HEAT PLANT"), | ||
("POWER PLANT", "POWER PLANT"), | ||
("COGENERATION PLANT", "COGENERATION PLANT"), | ||
("PRODUCTION BIOLIQUID", "PRODUCTION BIOLIQUID"), | ||
("EFCA", "EFCA"), | ||
], | ||
default="OTHER", | ||
max_length=32, | ||
), | ||
), | ||
migrations.RunPython(update_site_type), | ||
] |
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