summaryrefslogtreecommitdiff
path: root/ishtar_common/migrations
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2026-02-03 09:33:51 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2026-02-04 16:54:00 +0100
commitceb2af2f33d6d8c120bbd8e140821b0a1c671113 (patch)
tree5c7b7ff6074df59a9d92fa3ae9474aadec47c438 /ishtar_common/migrations
parentc661b314d1a15849252f58374144b4798f28db55 (diff)
downloadIshtar-ceb2af2f33d6d8c120bbd8e140821b0a1c671113.tar.bz2
Ishtar-ceb2af2f33d6d8c120bbd8e140821b0a1c671113.zip
đź“„ update copyright year
Diffstat (limited to 'ishtar_common/migrations')
-rw-r--r--ishtar_common/migrations/0241_migrate_old_department.py25
1 files changed, 24 insertions, 1 deletions
diff --git a/ishtar_common/migrations/0241_migrate_old_department.py b/ishtar_common/migrations/0241_migrate_old_department.py
index 4e5c2432a..666755010 100644
--- a/ishtar_common/migrations/0241_migrate_old_department.py
+++ b/ishtar_common/migrations/0241_migrate_old_department.py
@@ -2,7 +2,30 @@
from django.db import migrations
from django.db.models.functions import Length
-from ishtar_common.data import FRENCH_STATES, FRENCH_TOM_STATES
+
+FRENCH_STATES = [
+ ("Auvergne-RhĂ´ne-Alpe", "FR-ARA", ("01", "03", "07", "15", "26", "38", "42", "43", "63", "69", "73", "74",)),
+ ("Bourgogne-Franche-Comté", "FR-BFC", ("21", "25", "39", "58", "70", "71", "89", "90",)),
+ ("Bretagne", "FR-BRE", ("22", "29", "35", "56",)),
+ ("Centre-Val de Loire", "FR-CVL", ("18", "28", "36", "37", "41", "45",)),
+ ("Corse", "FR-COR", ("2A", "2B",)),
+ ("Grand Est", "FR-GES", ("08", "10", "51", "52", "54", "55", "57", "67", "68", "88",)),
+ ("Hauts-de-France", "FR-HDF", ("02", "59", "60", "62", "80",)),
+ ("Ile-de-France", "FR-IDF", ("75", "77", "78", "91", "92", "93", "94", "95", )),
+ ("Normandie", "FR-NOR", ("14", "27", "50", "61", "76",)),
+ ("Nouvelle-Aquitaine", "FR-NAQ", ("16", "17", "19", "23", "24", "33", "40", "47", "64", "79", "86", "87",)),
+ ("Occitanie", "FR-OCC", ("09", "11", "12", "30", "31", "32", "34", "46", "48", "65", "66", "81", "82",)),
+ ("Pays de la Loire", "FR-PDL", ("44", "49", "53", "72", "85",)),
+ ("Provence Alpes Côte d’Azur", "FR-PAC", ("04", "05", "06", "13", "83", "84",)),
+]
+
+FRENCH_TOM_STATES = [
+ ("Guadeloupe", "FR-GUA", []),
+ ("Guyane", "FR-GUF", []),
+ ("Martinique", "FR-MTQ", []),
+ ("La Réunion", "FR-LRE", []),
+ ("Mayotte", "FR-MAY", []),
+]
def migrate(apps, __):