diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-05-27 18:25:14 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-05-27 18:33:47 +0200 |
commit | 0e5ba6e7e7bb6a26fde543cd6cd934f247558afa (patch) | |
tree | d4b28a57613358ba0c92f62e0a01d0c09bf0221d /archaeological_operations | |
parent | 755d6978628cfd883a5c0fdb2bad3f6ba0ea3b7c (diff) | |
download | Ishtar-0e5ba6e7e7bb6a26fde543cd6cd934f247558afa.tar.bz2 Ishtar-0e5ba6e7e7bb6a26fde543cd6cd934f247558afa.zip |
🗃️ add missing typology: communicability, functional area, cultural attribution - add spatial reference system on installation (refs #5880)
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/migrations/0117_data_migration_culturalattributiontype.json | 431 | ||||
-rw-r--r-- | archaeological_operations/migrations/0117_data_migration_culturalattributiontype.py | 23 |
2 files changed, 454 insertions, 0 deletions
diff --git a/archaeological_operations/migrations/0117_data_migration_culturalattributiontype.json b/archaeological_operations/migrations/0117_data_migration_culturalattributiontype.json new file mode 100644 index 000000000..1242a4ada --- /dev/null +++ b/archaeological_operations/migrations/0117_data_migration_culturalattributiontype.json @@ -0,0 +1,431 @@ +[ +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Acheul\u00e9en", + "txt_idx": "acheuleen", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Augy-Ste-Pallaye", + "txt_idx": "augy-ste-pallaye", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Aurignacien", + "txt_idx": "aurignacien", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Azilien", + "txt_idx": "azilien", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Bad\u00e9goulien", + "txt_idx": "badegoulien", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Campaniforme", + "txt_idx": "campaniforme", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Cap\u00e9tien", + "txt_idx": "capetien", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Cardial", + "txt_idx": "cardial", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Cardial ou \u00e9picardial", + "txt_idx": "cardial-ou-epicardial", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Carolingien", + "txt_idx": "carolingien", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Cerny", + "txt_idx": "cerny", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Chass\u00e9en", + "txt_idx": "chasseen", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Ch\u00e2telperronien", + "txt_idx": "chatelperronien", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Civilisation Sa\u00f4ne-Rh\u00f4ne", + "txt_idx": "civilisation-saone-rhone", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Conguel", + "txt_idx": "conguel", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Cord\u00e9", + "txt_idx": "corde", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Culture d'Artenac", + "txt_idx": "culture-dartenac", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Culture Seine-Oise-Marne", + "txt_idx": "culture-seine-oise-marne", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "D\u00e9bitage Levallois", + "txt_idx": "debitage-levallois", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "\u00c9picardial", + "txt_idx": "epicardial", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Ferri\u00e8res", + "txt_idx": "ferrieres", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Fontbouisse", + "txt_idx": "fontbouisse", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Gaule celtique", + "txt_idx": "gaule-celtique", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Gaule celtique/romaine", + "txt_idx": "gaule-celtique-romaine", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Gaule romaine", + "txt_idx": "gaule-romaine", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Gravettien", + "txt_idx": "gravettien", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Grossgartach", + "txt_idx": "grossgartach", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "K\u00e9rugou", + "txt_idx": "kerugou", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Magdal\u00e9nien", + "txt_idx": "magdalenien", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Matignons", + "txt_idx": "matignons", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "M\u00e9rovingien", + "txt_idx": "merovingien", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Moust\u00e9rien", + "txt_idx": "mousterien", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Peu-Richard", + "txt_idx": "peu-richard", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Robenhausien", + "txt_idx": "robenhausien", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "RRBP", + "txt_idx": "rrbp", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Ruban\u00e9", + "txt_idx": "rubane", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Solutr\u00e9en", + "txt_idx": "solutreen", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Tardenoisien", + "txt_idx": "tardenoisien", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +}, +{ + "model": "archaeological_operations.culturalattributiontype", + "fields": { + "label": "Viking", + "txt_idx": "viking", + "comment": "", + "available": true, + "parent": null, + "order": 10 + } +} +] diff --git a/archaeological_operations/migrations/0117_data_migration_culturalattributiontype.py b/archaeological_operations/migrations/0117_data_migration_culturalattributiontype.py new file mode 100644 index 000000000..4838cf4b2 --- /dev/null +++ b/archaeological_operations/migrations/0117_data_migration_culturalattributiontype.py @@ -0,0 +1,23 @@ +import os + +from django.db import migrations +from django.core.management import call_command + + +def load_data(apps, __): + CulturalAttributionType = apps.get_model("archaeological_operations", "culturalattributiontype") + if not CulturalAttributionType.objects.count(): + migration = "0117_data_migration_culturalattributiontype.json" + json_path = os.sep.join(os.path.abspath(__file__).split(os.sep)[:-1] + [migration]) + call_command("loaddata", json_path) + + +class Migration(migrations.Migration): + + dependencies = [ + ('archaeological_operations', '0116_deposit_dates'), + ] + + operations = [ + migrations.RunPython(load_data) + ] |