diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-05-27 16:08:36 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-05-27 16:08:36 +0200 |
commit | 755d6978628cfd883a5c0fdb2bad3f6ba0ea3b7c (patch) | |
tree | 1863c2a3d1f227448ff1117b1a40bc8c6533bca3 | |
parent | f8d78169e821915d580f4fc0235e637c34f7b6c3 (diff) | |
download | Ishtar-755d6978628cfd883a5c0fdb2bad3f6ba0ea3b7c.tar.bz2 Ishtar-755d6978628cfd883a5c0fdb2bad3f6ba0ea3b7c.zip |
✅ remove MCC importers on default data - add specific fixtures with MCC data for tests (refs #5921)
-rw-r--r-- | archaeological_files/models.py | 1 | ||||
-rw-r--r-- | ishtar_common/data_importer.py | 1 | ||||
-rw-r--r-- | ishtar_common/fixtures/initial_importtypes-fr.json | 2250 | ||||
-rw-r--r-- | ishtar_common/fixtures/initial_importtypes-tests-fr.json | 2252 | ||||
-rw-r--r-- | ishtar_common/tests.py | 1 |
5 files changed, 2253 insertions, 2252 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py index 624ae470d..49f680031 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -991,7 +991,6 @@ class File( for cost in q.all(): values[prefix + key_qt_planned] += (cost.quantity_by_day_planned or 0) values[prefix + key_qt_worked] += (cost.quantity_by_day_worked or 0) - print() value = ES_UNITS_DAYS[cost.equipment_service_cost.unit] * ( cost.days_planned or 0) if value > values[prefix + key_time_planned]: diff --git a/ishtar_common/data_importer.py b/ishtar_common/data_importer.py index d16d878e5..46658f43d 100644 --- a/ishtar_common/data_importer.py +++ b/ishtar_common/data_importer.py @@ -631,7 +631,6 @@ class FileFormater(Formater): return self._format_zip(value, archive) def _format_url(self, value, link): - print(link) if not link.endswith("/"): link += "/" full_link = link + value diff --git a/ishtar_common/fixtures/initial_importtypes-fr.json b/ishtar_common/fixtures/initial_importtypes-fr.json index 8cf53a65e..930132114 100644 --- a/ishtar_common/fixtures/initial_importtypes-fr.json +++ b/ishtar_common/fixtures/initial_importtypes-fr.json @@ -162,86 +162,6 @@ { "model": "ishtar_common.importertype", "fields": { - "name": "MCC - Op\u00e9rations", - "slug": "mcc-operations", - "description": "", - "associated_models": [ - "archaeological_operations.models.Operation" - ], - "is_template": true, - "unicity_keys": "code_patriarche", - "available": true, - "users": [], - "created_models": [] - } -}, -{ - "model": "ishtar_common.importertype", - "fields": { - "name": "MCC - Parcelles", - "slug": "mcc-parcelles", - "description": "", - "associated_models": [ - "archaeological_operations.models.Parcel" - ], - "is_template": true, - "unicity_keys": "external_id", - "available": true, - "users": [], - "created_models": [] - } -}, -{ - "model": "ishtar_common.importertype", - "fields": { - "name": "MCC - Documentation", - "slug": "mcc-documentation", - "description": "", - "associated_models": [ - "archaeological_operations.models.OperationSource" - ], - "is_template": true, - "unicity_keys": "", - "available": true, - "users": [], - "created_models": [] - } -}, -{ - "model": "ishtar_common.importertype", - "fields": { - "name": "MCC - UE", - "slug": "mcc-ue", - "description": "", - "associated_models": [ - "archaeological_context_records.models.ContextRecord" - ], - "is_template": true, - "unicity_keys": "external_id", - "available": true, - "users": [], - "created_models": [] - } -}, -{ - "model": "ishtar_common.importertype", - "fields": { - "name": "MCC - Mobilier", - "slug": "mcc-mobilier", - "description": "", - "associated_models": [ - "archaeological_finds.models_finds.Find" - ], - "is_template": true, - "unicity_keys": "external_id", - "available": true, - "users": [], - "created_models": [] - } -}, -{ - "model": "ishtar_common.importertype", - "fields": { "name": "Ishtar - Op\u00e9rations", "slug": "ishtar-operations", "description": "Import complet standard operations", @@ -466,24 +386,6 @@ "model": "ishtar_common.importerdefault", "fields": { "importer_type": [ - "mcc-operations" - ], - "target": "operator" - } -}, -{ - "model": "ishtar_common.importerdefault", - "fields": { - "importer_type": [ - "mcc-documentation" - ], - "target": "authors" - } -}, -{ - "model": "ishtar_common.importerdefault", - "fields": { - "importer_type": [ "ishtar-operations" ], "target": "operator" @@ -520,28 +422,6 @@ "model": "ishtar_common.importerdefaultvalues", "fields": { "default_target": [ - "mcc-operations", - "operator" - ], - "target": "organization_type", - "value": "operator" - } -}, -{ - "model": "ishtar_common.importerdefaultvalues", - "fields": { - "default_target": [ - "mcc-documentation", - "authors" - ], - "target": "author_type", - "value": "main_author" - } -}, -{ - "model": "ishtar_common.importerdefaultvalues", - "fields": { - "default_target": [ "ishtar-operations", "operator" ], @@ -585,806 +465,6 @@ { "model": "ishtar_common.importercolumn", "fields": { - "label": "Code Patriarche", - "importer_type": [ - "mcc-operations" - ], - "col_number": 1, - "description": "Code Patriarche", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Type d'op\u00e9ration", - "importer_type": [ - "mcc-operations" - ], - "col_number": 3, - "description": "", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Nom de l'op\u00e9ration", - "importer_type": [ - "mcc-operations" - ], - "col_number": 4, - "description": "", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Nom de l'op\u00e9rateur", - "importer_type": [ - "mcc-operations" - ], - "col_number": 5, - "description": "", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Nom du responsable de l'op\u00e9ration", - "importer_type": [ - "mcc-operations" - ], - "col_number": 6, - "description": "Nom du responsable de l'op\u00e9ration. Nom et Pr\u00e9nom sont group\u00e9s et donc mis dans le NOM seul dans l'annuaire.", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Date d\u00e9but", - "importer_type": [ - "mcc-operations" - ], - "col_number": 7, - "description": "Date de d\u00e9but de l'op\u00e9ration avec le format ANN\u00c9E/MOIS/JOUR", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Date fin", - "importer_type": [ - "mcc-operations" - ], - "col_number": 8, - "description": "Date de fin de l'op\u00e9ration avec le format ANN\u00c9E/MOIS/JOUR", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "P\u00e9riodes", - "importer_type": [ - "mcc-operations" - ], - "col_number": 9, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Code Patriarche", - "importer_type": [ - "mcc-parcelles" - ], - "col_number": 1, - "description": "Code Patriarche de l'op\u00e9ration associ\u00e9e", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Ann\u00e9e cadastrale", - "importer_type": [ - "mcc-parcelles" - ], - "col_number": 6, - "description": "Ann\u00e9e", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Commune", - "importer_type": [ - "mcc-parcelles" - ], - "col_number": 2, - "description": "Commune (via num\u00e9ro INSEE)", - "regexp_pre_filter": [ - "Num\u00e9ro INSEE" - ], - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Adresse", - "importer_type": [ - "mcc-parcelles" - ], - "col_number": 9, - "description": "Lieu dit / adresse", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Code Patriarche", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 1, - "description": "Code Patriarche de l'op\u00e9ration associ\u00e9e", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Identifiant externe", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 2, - "description": "", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Type de document", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 3, - "description": "", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Type de support", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 4, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Num\u00e9ro", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 5, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Nom de l'auteur", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 6, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Date de cr\u00e9ation", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 7, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Type de format", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 8, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Description", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 9, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Commentaire", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 12, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "\u00c9chelle", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 13, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Information suppl\u00e9mentaire", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 16, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Code Patriarche", - "importer_type": [ - "mcc-ue" - ], - "col_number": 1, - "description": "Code Patriarche de l'op\u00e9ration associ\u00e9e", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Identifiant externe", - "importer_type": [ - "mcc-ue" - ], - "col_number": 4, - "description": "Identifiant externe ", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Type", - "importer_type": [ - "mcc-ue" - ], - "col_number": 5, - "description": "Type", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Description", - "importer_type": [ - "mcc-ue" - ], - "col_number": 6, - "description": "Description", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Identification", - "importer_type": [ - "mcc-ue" - ], - "col_number": 7, - "description": "Identification", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Date d\u00e9but", - "importer_type": [ - "mcc-ue" - ], - "col_number": 8, - "description": "Date d'ouverture", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Date fin", - "importer_type": [ - "mcc-ue" - ], - "col_number": 9, - "description": "Date de fermeture", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Parcelle", - "importer_type": [ - "mcc-ue" - ], - "col_number": 3, - "description": "Parcelle (identifiant externe)", - "regexp_pre_filter": null, - "required": true, - "export_field_name": "parcel__section|parcel__parcel_number" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Commentaire", - "importer_type": [ - "mcc-ue" - ], - "col_number": 11, - "description": "Commentaire", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Chronologie", - "importer_type": [ - "mcc-ue" - ], - "col_number": 13, - "description": "Chronologie (plusieurs possibles s\u00e9par\u00e9es par &)", - "regexp_pre_filter": null, - "required": false, - "export_field_name": "datings__period__label" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Code Patriarche", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 1, - "description": "Code patriarche de l'op\u00e9ration associ\u00e9e", - "regexp_pre_filter": null, - "required": true, - "export_field_name": "base_finds__context_record__operation__code_patriarche" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Identifiant externe", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 5, - "description": "Identifiant externe", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Mat\u00e9riau", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 9, - "description": "Sous classe de mat\u00e9riaux", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Nombre d'\u00e9l\u00e9ments", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 13, - "description": "Nombre d'\u00e9l\u00e9ments", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Poids", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 14, - "description": "Poids", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Unit\u00e9 de poids", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 15, - "description": "Unit\u00e9 de poids", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "UE", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 4, - "description": "Identifiant UE", - "regexp_pre_filter": null, - "required": true, - "export_field_name": "base_finds__context_record__label" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Date de d\u00e9couverte", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 16, - "description": "Date de d\u00e9couverte", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "\u00c9tat de conservation", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 17, - "description": "\u00c9tat de conservation", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Mesure de conservation", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 18, - "description": "Mesure de conservation", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Commentaire", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 19, - "description": "Commentaire", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Localisation topographique", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 21, - "description": "Localisation topographique", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Int\u00e9r\u00eat sp\u00e9cifique", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 22, - "description": "Int\u00e9r\u00eat sp\u00e9cifique", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Description", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 23, - "description": "Description", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Parcelle", - "importer_type": [ - "mcc-parcelles" - ], - "col_number": 4, - "description": "Num\u00e9ro", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Section cadastrale", - "importer_type": [ - "mcc-parcelles" - ], - "col_number": 5, - "description": "Section", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Identifiant externe", - "importer_type": [ - "mcc-parcelles" - ], - "col_number": 3, - "description": "Identifiant externe", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Nature", - "importer_type": [ - "mcc-ue" - ], - "col_number": 12, - "description": "Nature", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Commune", - "importer_type": [ - "mcc-ue" - ], - "col_number": 2, - "description": "Commune (via num\u00e9ro INSEE)", - "regexp_pre_filter": null, - "required": true, - "export_field_name": "parcel__town__numero_insee" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Parcelle", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 3, - "description": "Identifiant parcelle", - "regexp_pre_filter": null, - "required": true, - "export_field_name": "base_finds__context_record__parcel__section|base_finds__context_record__parcel__parcel_number" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Commune", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 2, - "description": "Commune (via num\u00e9ro INSEE)", - "regexp_pre_filter": null, - "required": true, - "export_field_name": "base_finds__context_record__parcel__town__numero_insee" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Datation", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 20, - "description": "Datations s\u00e9par\u00e9es par des \"&\"", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Libell\u00e9 contenant", - "importer_type": [ - "mcc-mobilier" - ], - "col_number": 12, - "description": "Ref. du contenant / label temporaire utilis\u00e9 pour le mobilier = label libre = Label pour l'instant", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { "label": "Code op\u00e9ration", "importer_type": [ "ishtar-operations" @@ -4478,253 +3558,6 @@ "model": "ishtar_common.importerduplicatefield", "fields": { "column": [ - "mcc-mobilier", - 5 - ], - "field_name": "label", - "force_new": false, - "concat": false, - "concat_str": null - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-mobilier", - 5 - ], - "field_name": "base_finds__external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-operations", - 6 - ], - "field_name": "scientist__name", - "force_new": false, - "concat": false, - "concat_str": null - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-ue", - 4 - ], - "field_name": "external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-parcelles", - 1 - ], - "field_name": "external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-parcelles", - 2 - ], - "field_name": "external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-ue", - 1 - ], - "field_name": "parcel__external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-ue", - 1 - ], - "field_name": "external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-ue", - 2 - ], - "field_name": "external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-ue", - 3 - ], - "field_name": "external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-mobilier", - 1 - ], - "field_name": "base_finds__external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-mobilier", - 2 - ], - "field_name": "base_finds__external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-mobilier", - 3 - ], - "field_name": "base_finds__external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-mobilier", - 4 - ], - "field_name": "base_finds__external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-mobilier", - 5 - ], - "field_name": "external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-mobilier", - 4 - ], - "field_name": "external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-mobilier", - 3 - ], - "field_name": "external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-mobilier", - 2 - ], - "field_name": "external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "mcc-mobilier", - 1 - ], - "field_name": "external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ "ishtar-context-record", 1 ], @@ -5557,1089 +4390,6 @@ "model": "ishtar_common.importtarget", "fields": { "column": [ - "mcc-operations", - 1 - ], - "target": "code_patriarche", - "formater_type": [ - "IntegerFormater", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-operations", - 3 - ], - "target": "operation_type", - "formater_type": [ - "TypeFormater", - "archaeological_operations.models.OperationType", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-operations", - 4 - ], - "target": "common_name", - "formater_type": [ - "UnicodeFormater", - "120", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-operations", - 5 - ], - "target": "operator__name", - "formater_type": [ - "UnicodeFormater", - "120", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-operations", - 6 - ], - "target": "scientist__raw_name", - "formater_type": [ - "UnicodeFormater", - "300", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-operations", - 7 - ], - "target": "start_date", - "formater_type": [ - "DateFormater", - "%Y/%m/%d", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-operations", - 8 - ], - "target": "excavation_end_date", - "formater_type": [ - "DateFormater", - "%Y/%m/%d", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-operations", - 9 - ], - "target": "periods", - "formater_type": [ - "TypeFormater", - "archaeological_operations.models.Period", - "&" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-parcelles", - 1 - ], - "target": "operation__code_patriarche", - "formater_type": [ - "IntegerFormater", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "-", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-parcelles", - 2 - ], - "target": "town__numero_insee", - "formater_type": [ - "UnicodeFormater", - "12", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-parcelles", - 9 - ], - "target": "address", - "formater_type": [ - "UnicodeFormater", - "500", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 1 - ], - "target": "operation__code_patriarche", - "formater_type": [ - "IntegerFormater", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 2 - ], - "target": "external_id", - "formater_type": [ - "UnicodeFormater", - "12", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 3 - ], - "target": "source_type", - "formater_type": [ - "TypeFormater", - "SourceType", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 4 - ], - "target": "support_type", - "formater_type": [ - "TypeFormater", - "SupportType", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 5 - ], - "target": "item_number", - "formater_type": [ - "IntegerFormater", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 6 - ], - "target": "authors__person__raw_name", - "formater_type": [ - "UnicodeFormater", - "300", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 7 - ], - "target": "creation_date", - "formater_type": [ - "YearFormater", - "%Y", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 8 - ], - "target": "format_type", - "formater_type": [ - "TypeFormater", - "Format", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 9 - ], - "target": "description", - "formater_type": [ - "UnicodeFormater", - "1000", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 12 - ], - "target": "comment", - "formater_type": [ - "UnicodeFormater", - "1000", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 13 - ], - "target": "scale", - "formater_type": [ - "UnicodeFormater", - "30", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 16 - ], - "target": "additional_information", - "formater_type": [ - "UnicodeFormater", - "1000", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-ue", - 1 - ], - "target": "operation__code_patriarche", - "formater_type": [ - "IntegerFormater", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "-", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-ue", - 4 - ], - "target": "label", - "formater_type": [ - "UnicodeFormater", - "120", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-ue", - 5 - ], - "target": "unit", - "formater_type": [ - "TypeFormater", - "archaeological_context_records.models.Unit", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-ue", - 6 - ], - "target": "description", - "formater_type": [ - "UnicodeFormater", - "1000", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-ue", - 7 - ], - "target": "identification", - "formater_type": [ - "TypeFormater", - "archaeological_context_records.models.IdentificationType", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-ue", - 8 - ], - "target": "opening_date", - "formater_type": [ - "DateFormater", - "%Y/%m/%d", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-ue", - 9 - ], - "target": "closing_date", - "formater_type": [ - "DateFormater", - "%Y/%m/%d", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-ue", - 3 - ], - "target": "parcel__external_id", - "formater_type": [ - "UnicodeFormater", - "12", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "-", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-ue", - 11 - ], - "target": "comment", - "formater_type": [ - "UnicodeFormater", - "1000", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-ue", - 13 - ], - "target": "datings__period", - "formater_type": [ - "TypeFormater", - "archaeological_operations.models.Period", - "&" - ], - "force_new": true, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 1 - ], - "target": "base_finds__context_record__external_id", - "formater_type": [ - "UnicodeFormater", - "12", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "-", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 5 - ], - "target": "base_finds__label", - "formater_type": [ - "UnicodeFormater", - "120", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 9 - ], - "target": "material_types", - "formater_type": [ - "TypeFormater", - "archaeological_finds.models.MaterialType", - "&" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 13 - ], - "target": "find_number", - "formater_type": [ - "IntegerFormater", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 14 - ], - "target": "weight", - "formater_type": [ - "FloatFormater", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 15 - ], - "target": "weight_unit", - "formater_type": [ - "UnicodeFormater", - "4", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 4 - ], - "target": "base_finds__context_record__external_id", - "formater_type": [ - "UnicodeFormater", - "120", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "-", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 16 - ], - "target": "base_finds__discovery_date", - "formater_type": [ - "DateFormater", - "%Y/%m/%d", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 17 - ], - "target": "conservatory_states", - "formater_type": [ - "TypeFormater", - "archaeological_finds.models.ConservatoryState", - "&" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 18 - ], - "target": "preservation_to_considers", - "formater_type": [ - "TypeFormater", - "archaeological_finds.models.TreatmentType", - "&" - ], - "force_new": false, - "concat": false, - "concat_str": "", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 19 - ], - "target": "base_finds__comment", - "formater_type": [ - "UnicodeFormater", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 21 - ], - "target": "base_finds__topographic_localisation", - "formater_type": [ - "UnicodeFormater", - "120", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 22 - ], - "target": "base_finds__special_interest", - "formater_type": [ - "UnicodeFormater", - "120", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 23 - ], - "target": "base_finds__description", - "formater_type": [ - "UnicodeFormater", - "1000", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-parcelles", - 4 - ], - "target": "parcel_number", - "formater_type": [ - "UnicodeFormater", - "6", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-parcelles", - 5 - ], - "target": "section", - "formater_type": [ - "UnicodeFormater", - "4", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-parcelles", - 3 - ], - "target": "external_id", - "formater_type": [ - "UnicodeFormater", - "12", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "-", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-parcelles", - 6 - ], - "target": "year", - "formater_type": [ - "YearFormater", - "%Y", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-ue", - 12 - ], - "target": "interpretation", - "formater_type": [ - "UnicodeFormater", - "1000", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-ue", - 2 - ], - "target": "parcel__external_id", - "formater_type": [ - "UnicodeFormater", - "5", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "-", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 3 - ], - "target": "base_finds__context_record__external_id", - "formater_type": [ - "UnicodeFormater", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "-", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 2 - ], - "target": "base_finds__context_record__external_id", - "formater_type": [ - "UnicodeFormater", - "5", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "-", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 20 - ], - "target": "datings__period", - "formater_type": [ - "TypeFormater", - "archaeological_operations.models.Period", - "&" - ], - "force_new": true, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-mobilier", - 12 - ], - "target": "label", - "formater_type": [ - "UnicodeFormater", - "120", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ "ishtar-operations", 1 ], diff --git a/ishtar_common/fixtures/initial_importtypes-tests-fr.json b/ishtar_common/fixtures/initial_importtypes-tests-fr.json new file mode 100644 index 000000000..8088e9aae --- /dev/null +++ b/ishtar_common/fixtures/initial_importtypes-tests-fr.json @@ -0,0 +1,2252 @@ +[ +{ + "model": "ishtar_common.importertype", + "fields": { + "name": "MCC - Op\u00e9rations", + "slug": "mcc-operations", + "description": "", + "associated_models": [ + "archaeological_operations.models.Operation" + ], + "is_template": true, + "unicity_keys": "code_patriarche", + "available": true, + "users": [], + "created_models": [] + } +}, +{ + "model": "ishtar_common.importertype", + "fields": { + "name": "MCC - Parcelles", + "slug": "mcc-parcelles", + "description": "", + "associated_models": [ + "archaeological_operations.models.Parcel" + ], + "is_template": true, + "unicity_keys": "external_id", + "available": true, + "users": [], + "created_models": [] + } +}, +{ + "model": "ishtar_common.importertype", + "fields": { + "name": "MCC - Documentation", + "slug": "mcc-documentation", + "description": "", + "associated_models": [ + "archaeological_operations.models.OperationSource" + ], + "is_template": true, + "unicity_keys": "", + "available": true, + "users": [], + "created_models": [] + } +}, +{ + "model": "ishtar_common.importertype", + "fields": { + "name": "MCC - UE", + "slug": "mcc-ue", + "description": "", + "associated_models": [ + "archaeological_context_records.models.ContextRecord" + ], + "is_template": true, + "unicity_keys": "external_id", + "available": true, + "users": [], + "created_models": [] + } +}, +{ + "model": "ishtar_common.importertype", + "fields": { + "name": "MCC - Mobilier", + "slug": "mcc-mobilier", + "description": "", + "associated_models": [ + "archaeological_finds.models_finds.Find" + ], + "is_template": true, + "unicity_keys": "external_id", + "available": true, + "users": [], + "created_models": [] + } +}, +{ + "model": "ishtar_common.importerdefault", + "fields": { + "importer_type": [ + "mcc-operations" + ], + "target": "operator" + } +}, +{ + "model": "ishtar_common.importerdefault", + "fields": { + "importer_type": [ + "mcc-documentation" + ], + "target": "authors" + } +}, +{ + "model": "ishtar_common.importerdefaultvalues", + "fields": { + "default_target": [ + "mcc-operations", + "operator" + ], + "target": "organization_type", + "value": "operator" + } +}, +{ + "model": "ishtar_common.importerdefaultvalues", + "fields": { + "default_target": [ + "mcc-documentation", + "authors" + ], + "target": "author_type", + "value": "main_author" + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Code Patriarche", + "importer_type": [ + "mcc-operations" + ], + "col_number": 1, + "description": "Code Patriarche", + "regexp_pre_filter": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Type d'op\u00e9ration", + "importer_type": [ + "mcc-operations" + ], + "col_number": 3, + "description": "", + "regexp_pre_filter": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Nom de l'op\u00e9ration", + "importer_type": [ + "mcc-operations" + ], + "col_number": 4, + "description": "", + "regexp_pre_filter": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Nom de l'op\u00e9rateur", + "importer_type": [ + "mcc-operations" + ], + "col_number": 5, + "description": "", + "regexp_pre_filter": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Nom du responsable de l'op\u00e9ration", + "importer_type": [ + "mcc-operations" + ], + "col_number": 6, + "description": "Nom du responsable de l'op\u00e9ration. Nom et Pr\u00e9nom sont group\u00e9s et donc mis dans le NOM seul dans l'annuaire.", + "regexp_pre_filter": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Date d\u00e9but", + "importer_type": [ + "mcc-operations" + ], + "col_number": 7, + "description": "Date de d\u00e9but de l'op\u00e9ration avec le format ANN\u00c9E/MOIS/JOUR", + "regexp_pre_filter": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Date fin", + "importer_type": [ + "mcc-operations" + ], + "col_number": 8, + "description": "Date de fin de l'op\u00e9ration avec le format ANN\u00c9E/MOIS/JOUR", + "regexp_pre_filter": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "P\u00e9riodes", + "importer_type": [ + "mcc-operations" + ], + "col_number": 9, + "description": "", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Code Patriarche", + "importer_type": [ + "mcc-parcelles" + ], + "col_number": 1, + "description": "Code Patriarche de l'op\u00e9ration associ\u00e9e", + "regexp_pre_filter": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Ann\u00e9e cadastrale", + "importer_type": [ + "mcc-parcelles" + ], + "col_number": 6, + "description": "Ann\u00e9e", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Commune", + "importer_type": [ + "mcc-parcelles" + ], + "col_number": 2, + "description": "Commune (via num\u00e9ro INSEE)", + "regexp_pre_filter": [ + "Num\u00e9ro INSEE" + ], + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Adresse", + "importer_type": [ + "mcc-parcelles" + ], + "col_number": 9, + "description": "Lieu dit / adresse", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Code Patriarche", + "importer_type": [ + "mcc-documentation" + ], + "col_number": 1, + "description": "Code Patriarche de l'op\u00e9ration associ\u00e9e", + "regexp_pre_filter": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Identifiant externe", + "importer_type": [ + "mcc-documentation" + ], + "col_number": 2, + "description": "", + "regexp_pre_filter": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Type de document", + "importer_type": [ + "mcc-documentation" + ], + "col_number": 3, + "description": "", + "regexp_pre_filter": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Type de support", + "importer_type": [ + "mcc-documentation" + ], + "col_number": 4, + "description": "", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Num\u00e9ro", + "importer_type": [ + "mcc-documentation" + ], + "col_number": 5, + "description": "", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Nom de l'auteur", + "importer_type": [ + "mcc-documentation" + ], + "col_number": 6, + "description": "", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Date de cr\u00e9ation", + "importer_type": [ + "mcc-documentation" + ], + "col_number": 7, + "description": "", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Type de format", + "importer_type": [ + "mcc-documentation" + ], + "col_number": 8, + "description": "", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Description", + "importer_type": [ + "mcc-documentation" + ], + "col_number": 9, + "description": "", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Commentaire", + "importer_type": [ + "mcc-documentation" + ], + "col_number": 12, + "description": "", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "\u00c9chelle", + "importer_type": [ + "mcc-documentation" + ], + "col_number": 13, + "description": "", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Information suppl\u00e9mentaire", + "importer_type": [ + "mcc-documentation" + ], + "col_number": 16, + "description": "", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Code Patriarche", + "importer_type": [ + "mcc-ue" + ], + "col_number": 1, + "description": "Code Patriarche de l'op\u00e9ration associ\u00e9e", + "regexp_pre_filter": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Identifiant externe", + "importer_type": [ + "mcc-ue" + ], + "col_number": 4, + "description": "Identifiant externe ", + "regexp_pre_filter": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Type", + "importer_type": [ + "mcc-ue" + ], + "col_number": 5, + "description": "Type", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Description", + "importer_type": [ + "mcc-ue" + ], + "col_number": 6, + "description": "Description", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Identification", + "importer_type": [ + "mcc-ue" + ], + "col_number": 7, + "description": "Identification", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Date d\u00e9but", + "importer_type": [ + "mcc-ue" + ], + "col_number": 8, + "description": "Date d'ouverture", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Date fin", + "importer_type": [ + "mcc-ue" + ], + "col_number": 9, + "description": "Date de fermeture", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Parcelle", + "importer_type": [ + "mcc-ue" + ], + "col_number": 3, + "description": "Parcelle (identifiant externe)", + "regexp_pre_filter": null, + "required": true, + "export_field_name": "parcel__section|parcel__parcel_number" + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Commentaire", + "importer_type": [ + "mcc-ue" + ], + "col_number": 11, + "description": "Commentaire", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Chronologie", + "importer_type": [ + "mcc-ue" + ], + "col_number": 13, + "description": "Chronologie (plusieurs possibles s\u00e9par\u00e9es par &)", + "regexp_pre_filter": null, + "required": false, + "export_field_name": "datings__period__label" + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Code Patriarche", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 1, + "description": "Code patriarche de l'op\u00e9ration associ\u00e9e", + "regexp_pre_filter": null, + "required": true, + "export_field_name": "base_finds__context_record__operation__code_patriarche" + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Identifiant externe", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 5, + "description": "Identifiant externe", + "regexp_pre_filter": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Mat\u00e9riau", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 9, + "description": "Sous classe de mat\u00e9riaux", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Nombre d'\u00e9l\u00e9ments", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 13, + "description": "Nombre d'\u00e9l\u00e9ments", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Poids", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 14, + "description": "Poids", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Unit\u00e9 de poids", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 15, + "description": "Unit\u00e9 de poids", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "UE", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 4, + "description": "Identifiant UE", + "regexp_pre_filter": null, + "required": true, + "export_field_name": "base_finds__context_record__label" + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Date de d\u00e9couverte", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 16, + "description": "Date de d\u00e9couverte", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "\u00c9tat de conservation", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 17, + "description": "\u00c9tat de conservation", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Mesure de conservation", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 18, + "description": "Mesure de conservation", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Commentaire", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 19, + "description": "Commentaire", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Localisation topographique", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 21, + "description": "Localisation topographique", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Int\u00e9r\u00eat sp\u00e9cifique", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 22, + "description": "Int\u00e9r\u00eat sp\u00e9cifique", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Description", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 23, + "description": "Description", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Parcelle", + "importer_type": [ + "mcc-parcelles" + ], + "col_number": 4, + "description": "Num\u00e9ro", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Section cadastrale", + "importer_type": [ + "mcc-parcelles" + ], + "col_number": 5, + "description": "Section", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Identifiant externe", + "importer_type": [ + "mcc-parcelles" + ], + "col_number": 3, + "description": "Identifiant externe", + "regexp_pre_filter": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Nature", + "importer_type": [ + "mcc-ue" + ], + "col_number": 12, + "description": "Nature", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Commune", + "importer_type": [ + "mcc-ue" + ], + "col_number": 2, + "description": "Commune (via num\u00e9ro INSEE)", + "regexp_pre_filter": null, + "required": true, + "export_field_name": "parcel__town__numero_insee" + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Parcelle", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 3, + "description": "Identifiant parcelle", + "regexp_pre_filter": null, + "required": true, + "export_field_name": "base_finds__context_record__parcel__section|base_finds__context_record__parcel__parcel_number" + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Commune", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 2, + "description": "Commune (via num\u00e9ro INSEE)", + "regexp_pre_filter": null, + "required": true, + "export_field_name": "base_finds__context_record__parcel__town__numero_insee" + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Datation", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 20, + "description": "Datations s\u00e9par\u00e9es par des \"&\"", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Libell\u00e9 contenant", + "importer_type": [ + "mcc-mobilier" + ], + "col_number": 12, + "description": "Ref. du contenant / label temporaire utilis\u00e9 pour le mobilier = label libre = Label pour l'instant", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-mobilier", + 5 + ], + "field_name": "label", + "force_new": false, + "concat": false, + "concat_str": null + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-mobilier", + 5 + ], + "field_name": "base_finds__external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-operations", + 6 + ], + "field_name": "scientist__name", + "force_new": false, + "concat": false, + "concat_str": null + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-ue", + 4 + ], + "field_name": "external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-parcelles", + 1 + ], + "field_name": "external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-parcelles", + 2 + ], + "field_name": "external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-ue", + 1 + ], + "field_name": "parcel__external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-ue", + 1 + ], + "field_name": "external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-ue", + 2 + ], + "field_name": "external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-ue", + 3 + ], + "field_name": "external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-mobilier", + 1 + ], + "field_name": "base_finds__external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-mobilier", + 2 + ], + "field_name": "base_finds__external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-mobilier", + 3 + ], + "field_name": "base_finds__external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-mobilier", + 4 + ], + "field_name": "base_finds__external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-mobilier", + 5 + ], + "field_name": "external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-mobilier", + 4 + ], + "field_name": "external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-mobilier", + 3 + ], + "field_name": "external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-mobilier", + 2 + ], + "field_name": "external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": [ + "mcc-mobilier", + 1 + ], + "field_name": "external_id", + "force_new": false, + "concat": false, + "concat_str": "-" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-operations", + 1 + ], + "target": "code_patriarche", + "formater_type": [ + "IntegerFormater", + "", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-operations", + 3 + ], + "target": "operation_type", + "formater_type": [ + "TypeFormater", + "archaeological_operations.models.OperationType", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-operations", + 4 + ], + "target": "common_name", + "formater_type": [ + "UnicodeFormater", + "120", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-operations", + 5 + ], + "target": "operator__name", + "formater_type": [ + "UnicodeFormater", + "120", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-operations", + 6 + ], + "target": "scientist__raw_name", + "formater_type": [ + "UnicodeFormater", + "300", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-operations", + 7 + ], + "target": "start_date", + "formater_type": [ + "DateFormater", + "%Y/%m/%d", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-operations", + 8 + ], + "target": "excavation_end_date", + "formater_type": [ + "DateFormater", + "%Y/%m/%d", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-operations", + 9 + ], + "target": "periods", + "formater_type": [ + "TypeFormater", + "archaeological_operations.models.Period", + "&" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-parcelles", + 1 + ], + "target": "operation__code_patriarche", + "formater_type": [ + "IntegerFormater", + "", + "" + ], + "force_new": false, + "concat": false, + "concat_str": "-", + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-parcelles", + 2 + ], + "target": "town__numero_insee", + "formater_type": [ + "UnicodeFormater", + "12", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-parcelles", + 9 + ], + "target": "address", + "formater_type": [ + "UnicodeFormater", + "500", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-documentation", + 1 + ], + "target": "operation__code_patriarche", + "formater_type": [ + "IntegerFormater", + "", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-documentation", + 2 + ], + "target": "external_id", + "formater_type": [ + "UnicodeFormater", + "12", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-documentation", + 3 + ], + "target": "source_type", + "formater_type": [ + "TypeFormater", + "SourceType", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-documentation", + 4 + ], + "target": "support_type", + "formater_type": [ + "TypeFormater", + "SupportType", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-documentation", + 5 + ], + "target": "item_number", + "formater_type": [ + "IntegerFormater", + "", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-documentation", + 6 + ], + "target": "authors__person__raw_name", + "formater_type": [ + "UnicodeFormater", + "300", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-documentation", + 7 + ], + "target": "creation_date", + "formater_type": [ + "YearFormater", + "%Y", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-documentation", + 8 + ], + "target": "format_type", + "formater_type": [ + "TypeFormater", + "Format", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-documentation", + 9 + ], + "target": "description", + "formater_type": [ + "UnicodeFormater", + "1000", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-documentation", + 12 + ], + "target": "comment", + "formater_type": [ + "UnicodeFormater", + "1000", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-documentation", + 13 + ], + "target": "scale", + "formater_type": [ + "UnicodeFormater", + "30", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-documentation", + 16 + ], + "target": "additional_information", + "formater_type": [ + "UnicodeFormater", + "1000", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-ue", + 1 + ], + "target": "operation__code_patriarche", + "formater_type": [ + "IntegerFormater", + "", + "" + ], + "force_new": false, + "concat": false, + "concat_str": "-", + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-ue", + 4 + ], + "target": "label", + "formater_type": [ + "UnicodeFormater", + "120", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-ue", + 5 + ], + "target": "unit", + "formater_type": [ + "TypeFormater", + "archaeological_context_records.models.Unit", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-ue", + 6 + ], + "target": "description", + "formater_type": [ + "UnicodeFormater", + "1000", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-ue", + 7 + ], + "target": "identification", + "formater_type": [ + "TypeFormater", + "archaeological_context_records.models.IdentificationType", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-ue", + 8 + ], + "target": "opening_date", + "formater_type": [ + "DateFormater", + "%Y/%m/%d", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-ue", + 9 + ], + "target": "closing_date", + "formater_type": [ + "DateFormater", + "%Y/%m/%d", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-ue", + 3 + ], + "target": "parcel__external_id", + "formater_type": [ + "UnicodeFormater", + "12", + "" + ], + "force_new": false, + "concat": false, + "concat_str": "-", + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-ue", + 11 + ], + "target": "comment", + "formater_type": [ + "UnicodeFormater", + "1000", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-ue", + 13 + ], + "target": "datings__period", + "formater_type": [ + "TypeFormater", + "archaeological_operations.models.Period", + "&" + ], + "force_new": true, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 1 + ], + "target": "base_finds__context_record__external_id", + "formater_type": [ + "UnicodeFormater", + "12", + "" + ], + "force_new": false, + "concat": false, + "concat_str": "-", + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 5 + ], + "target": "base_finds__label", + "formater_type": [ + "UnicodeFormater", + "120", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 9 + ], + "target": "material_types", + "formater_type": [ + "TypeFormater", + "archaeological_finds.models.MaterialType", + "&" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 13 + ], + "target": "find_number", + "formater_type": [ + "IntegerFormater", + "", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 14 + ], + "target": "weight", + "formater_type": [ + "FloatFormater", + "", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 15 + ], + "target": "weight_unit", + "formater_type": [ + "UnicodeFormater", + "4", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 4 + ], + "target": "base_finds__context_record__external_id", + "formater_type": [ + "UnicodeFormater", + "120", + "" + ], + "force_new": false, + "concat": false, + "concat_str": "-", + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 16 + ], + "target": "base_finds__discovery_date", + "formater_type": [ + "DateFormater", + "%Y/%m/%d", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 17 + ], + "target": "conservatory_states", + "formater_type": [ + "TypeFormater", + "archaeological_finds.models.ConservatoryState", + "&" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 18 + ], + "target": "preservation_to_considers", + "formater_type": [ + "TypeFormater", + "archaeological_finds.models.TreatmentType", + "&" + ], + "force_new": false, + "concat": false, + "concat_str": "", + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 19 + ], + "target": "base_finds__comment", + "formater_type": [ + "UnicodeFormater", + "", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 21 + ], + "target": "base_finds__topographic_localisation", + "formater_type": [ + "UnicodeFormater", + "120", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 22 + ], + "target": "base_finds__special_interest", + "formater_type": [ + "UnicodeFormater", + "120", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 23 + ], + "target": "base_finds__description", + "formater_type": [ + "UnicodeFormater", + "1000", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-parcelles", + 4 + ], + "target": "parcel_number", + "formater_type": [ + "UnicodeFormater", + "6", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-parcelles", + 5 + ], + "target": "section", + "formater_type": [ + "UnicodeFormater", + "4", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-parcelles", + 3 + ], + "target": "external_id", + "formater_type": [ + "UnicodeFormater", + "12", + "" + ], + "force_new": false, + "concat": false, + "concat_str": "-", + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-parcelles", + 6 + ], + "target": "year", + "formater_type": [ + "YearFormater", + "%Y", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-ue", + 12 + ], + "target": "interpretation", + "formater_type": [ + "UnicodeFormater", + "1000", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-ue", + 2 + ], + "target": "parcel__external_id", + "formater_type": [ + "UnicodeFormater", + "5", + "" + ], + "force_new": false, + "concat": false, + "concat_str": "-", + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 3 + ], + "target": "base_finds__context_record__external_id", + "formater_type": [ + "UnicodeFormater", + "", + "" + ], + "force_new": false, + "concat": false, + "concat_str": "-", + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 2 + ], + "target": "base_finds__context_record__external_id", + "formater_type": [ + "UnicodeFormater", + "5", + "" + ], + "force_new": false, + "concat": false, + "concat_str": "-", + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 20 + ], + "target": "datings__period", + "formater_type": [ + "TypeFormater", + "archaeological_operations.models.Period", + "&" + ], + "force_new": true, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "mcc-mobilier", + 12 + ], + "target": "label", + "formater_type": [ + "UnicodeFormater", + "120", + "" + ], + "force_new": false, + "concat": false, + "concat_str": "", + "comment": "" + } +} +] diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py index 6d2f1d0c0..90e8d3991 100644 --- a/ishtar_common/tests.py +++ b/ishtar_common/tests.py @@ -106,6 +106,7 @@ COMMON_FIXTURES = [ LIB_BASE_PATH + "ishtar_common/fixtures/initial_data-fr.json", LIB_BASE_PATH + "ishtar_common/fixtures/initial_geo-fr.json", LIB_BASE_PATH + "ishtar_common/fixtures/initial_importtypes-fr.json", + LIB_BASE_PATH + "ishtar_common/fixtures/initial_importtypes-tests-fr.json", ] COMMON_MIGRATION_DIR = LIB_BASE_PATH + "ishtar_common/migrations/" |