diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-04-27 10:34:15 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-04-27 10:34:55 +0200 |
| commit | d0ebb0bae73dca46b406a58278b5c9cc284c5adf (patch) | |
| tree | 0e97dc6afefcce239b7e57f2b14c42290585c2ad | |
| parent | 17217943ef107e721f2a993a5606f5ef7a8da9f2 (diff) | |
| download | Ishtar-d0ebb0bae73dca46b406a58278b5c9cc284c5adf.tar.bz2 Ishtar-d0ebb0bae73dca46b406a58278b5c9cc284c5adf.zip | |
✨ update default data for new fields
| -rw-r--r-- | archaeological_operations/migrations/0129_data_migration.json | 293 | ||||
| -rw-r--r-- | ishtar_common/migrations/0277_data_migration.json | 96 |
2 files changed, 306 insertions, 83 deletions
diff --git a/archaeological_operations/migrations/0129_data_migration.json b/archaeological_operations/migrations/0129_data_migration.json index edf090689..1f56d9676 100644 --- a/archaeological_operations/migrations/0129_data_migration.json +++ b/archaeological_operations/migrations/0129_data_migration.json @@ -1,87 +1,250 @@ [ -{ + { + "model": "archaeological_operations.heritageandenvironmentalprotectiontype", + "fields": { + "label": "Protections et labels patrimoniaux", + "txt_idx": "protections-et-labels-patrimoniaux", + "comment": "", + "available": true, + "parent": null, + "order": 100 + } + }, + { + "model": "archaeological_operations.heritageandenvironmentalprotectiontype", + "fields": { + "label": "Protections environnementales", + "txt_idx": "protections-environnementales", + "comment": "", + "available": true, + "parent": null, + "order": 300 + } + }, + { + "model": "archaeological_operations.heritageandenvironmentalprotectiontype", + "fields": { + "label": "Inscrit MH", + "txt_idx": "inscrit-mh", + "comment": "", + "available": true, + "parent": [ + "protections-et-labels-patrimoniaux" + ], + "order": 110 + } + }, + { + "model": "archaeological_operations.heritageandenvironmentalprotectiontype", + "fields": { + "label": "Class\u00e9 MH", + "txt_idx": "classe-mh", + "comment": "", + "available": true, + "parent": [ + "protections-et-labels-patrimoniaux" + ], + "order": 120 + } + }, + { + "model": "archaeological_operations.heritageandenvironmentalprotectiontype", + "fields": { + "label": "P\u00e9rim\u00e8tre MH", + "txt_idx": "Perimetre-mh", + "comment": "", + "available": true, + "parent": [ + "protections-et-labels-patrimoniaux" + ], + "order": 130 + } + }, + { "model": "archaeological_operations.heritageandenvironmentalprotectiontype", "fields": { - "label": "Site classé", - "txt_idx": "site-classe", - "comment": "", - "available": true, - "parent": [ - "protection-patrimoniale" - ], - "order": 10 - } -}, -{ + "label": "Site Patrimonial remarquable", + "txt_idx": "site-patrimonial-remarquable", + "comment": "", + "available": true, + "parent": [ + "protections-et-labels-patrimoniaux" + ], + "order": 140 + } + }, + { "model": "archaeological_operations.heritageandenvironmentalprotectiontype", "fields": { - "label": "Site inscrit", - "txt_idx": "site-inscrit", - "comment": "", - "available": true, - "parent": [ - "protection-patrimoniale" - ], - "order": 10 - } -}, -{ + "label": "Label ACR ", + "txt_idx": "label-acr", + "comment": "", + "available": true, + "parent": [ + "protections-et-labels-patrimoniaux" + ], + "order": 150 + } + }, + { "model": "archaeological_operations.heritageandenvironmentalprotectiontype", "fields": { - "label": "Natura 2000", - "txt_idx": "natura-2000", - "comment": "", - "available": true, - "parent": [ - "protection-environnementale" - ], - "order": 10 - } -}, -{ + "label": "Label PIR", + "txt_idx": "label-pir", + "comment": "", + "available": true, + "parent": [ + "protections-et-labels-patrimoniaux" + ], + "order": 160 + } + }, + { "model": "archaeological_operations.heritageandenvironmentalprotectiontype", "fields": { - "label": "Protection patrimoniale", - "txt_idx": "protection-patrimoniale", - "comment": "", - "available": true, - "parent": null, - "order": 10 + "label": "Jardin remarquable ", + "txt_idx": "jardin-remarquable", + "comment": "", + "available": true, + "parent": [ + "protections-et-labels-patrimoniaux" + ], + "order": 200 } -}, -{ + }, + { "model": "archaeological_operations.heritageandenvironmentalprotectiontype", "fields": { - "label": "Protection environnementale", - "txt_idx": "protection-environnementale", - "comment": "", - "available": true, - "parent": null, - "order": 10 + "label": "Maison des Illustres ", + "txt_idx": "maison-des-illustres", + "comment": "", + "available": true, + "parent": [ + "protections-et-labels-patrimoniaux" + ], + "order": 220 } -}, -{ + }, + { + "model": "archaeological_operations.heritageandenvironmentalprotectiontype", + "fields": { + "label": "Natura 2000", + "txt_idx": "natura-2000", + "comment": "", + "available": true, + "parent": [ + "protections-environnementales" + ], + "order": 320 + } + }, + { + "model": "archaeological_operations.heritageandenvironmentalprotectiontype", + "fields": { + "label": "Site inscrit ", + "txt_idx": "site-inscrit", + "comment": "", + "available": true, + "parent": [ + "protections-environnementales" + ], + "order": 340 + } + }, + { + "model": "archaeological_operations.heritageandenvironmentalprotectiontype", + "fields": { + "label": "Site class\u00e9 ", + "txt_idx": "site-classe", + "comment": "", + "available": true, + "parent": [ + "protections-environnementales" + ], + "order": 360 + } + }, + { + "model": "archaeological_operations.heritageandenvironmentalprotectiontype", + "fields": { + "label": "PVAP", + "txt_idx": "pvap", + "comment": "", + "available": true, + "parent": [ + "site-patrimonial-remarquable" + ], + "order": 10 + } + }, + { + "model": "archaeological_operations.heritageandenvironmentalprotectiontype", + "fields": { + "label": "PSMV", + "txt_idx": "psmv", + "comment": "", + "available": true, + "parent": [ + "site-patrimonial-remarquable" + ], + "order": 20 + } + }, + { "model": "archaeological_operations.heritageinteresttype", "fields": { - "label": "Intérêt patrimonial 1", - "txt_idx": "interet-patrimonial-1", - "comment": "", - "available": true, - "parent": null, - "order": 10 + "label": "Peu int\u00e9ressant", + "txt_idx": "peu-interessant", + "comment": "", + "available": true, + "parent": null, + "order": 10 } -}, -{ + }, + { "model": "archaeological_operations.heritageinteresttype", "fields": { - "label": "Intérêt patrimonial 2", - "txt_idx": "interet-patrimonial-2", - "comment": "", - "available": true, - "parent": null, - "order": 10 + "label": "Int\u00e9ressant", + "txt_idx": "interessant", + "comment": "", + "available": true, + "parent": null, + "order": 20 } -}, + }, + { + "model": "archaeological_operations.heritageinteresttype", + "fields": { + "label": "Tr\u00e8s int\u00e9ressant", + "txt_idx": "tres-interessant", + "comment": "", + "available": true, + "parent": null, + "order": 30 + } + }, + { + "model": "archaeological_operations.heritageinteresttype", + "fields": { + "label": "Remarquable", + "txt_idx": "remarquable", + "comment": "", + "available": true, + "parent": null, + "order": 40 + } + }, + { + "model": "archaeological_operations.heritageinteresttype", + "fields": { + "label": "\u00c0 prot\u00e9ger", + "txt_idx": "a-proteger", + "comment": "", + "available": true, + "parent": null, + "order": 50 + } + } { "model": "archaeological_operations.siterelationtype", "fields": { diff --git a/ishtar_common/migrations/0277_data_migration.json b/ishtar_common/migrations/0277_data_migration.json index 1bc40e4a6..44277ae96 100644 --- a/ishtar_common/migrations/0277_data_migration.json +++ b/ishtar_common/migrations/0277_data_migration.json @@ -1,26 +1,86 @@ [ -{ + { "model": "ishtar_common.qualifiedbiographicalnotetype", "fields": { - "label": "Architecte", - "txt_idx": "architecte", - "comment": "", - "available": true, - "parent": null, - "order": 20, - "model": "S" + "label": "Ancien collectionneur", + "txt_idx": "ancien-collectionneur", + "comment": "", + "available": true, + "parent": null, + "order": 10, + "model": "F" } -}, -{ + }, + { "model": "ishtar_common.qualifiedbiographicalnotetype", "fields": { - "label": "Inventeur", - "txt_idx": "inventeur", - "comment": "", - "available": true, - "parent": null, - "order": 10, - "model": "S" + "label": "Donateur", + "txt_idx": "donateur", + "comment": "", + "available": true, + "parent": null, + "order": 20, + "model": "F" } -} + }, + { + "model": "ishtar_common.qualifiedbiographicalnotetype", + "fields": { + "label": "Testateur", + "txt_idx": "testateur", + "comment": "", + "available": true, + "parent": null, + "order": 30, + "model": "F" + } + }, + { + "model": "ishtar_common.qualifiedbiographicalnotetype", + "fields": { + "label": "Vendeur", + "txt_idx": "vendeur", + "comment": "", + "available": true, + "parent": null, + "order": 40, + "model": "F" + } + }, + { + "model": "ishtar_common.qualifiedbiographicalnotetype", + "fields": { + "label": "Donateur, testateur ou vendeur", + "txt_idx": "donateur-testateur-ou-vendeur", + "comment": "", + "available": true, + "parent": null, + "order": 50, + "model": "F" + } + }, + { + "model": "ishtar_common.qualifiedbiographicalnotetype", + "fields": { + "label": "Inventeur", + "txt_idx": "inventeur", + "comment": "", + "available": true, + "parent": null, + "order": 60, + "model": "A" + } + }, + { + "model": "ishtar_common.qualifiedbiographicalnotetype", + "fields": { + "label": "Architecte", + "txt_idx": "architecte", + "comment": "", + "available": true, + "parent": null, + "order": 70, + "model": "S" + } + } ] |
