From fa84f873b7c4d3bcc7eb962b4ac99fb9e6cddaf9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 26 Jul 2017 09:22:34 +0200 Subject: Update fixtures --- ishtar_common/fixtures/initial_data-fr.json | 26 +- ishtar_common/fixtures/initial_importtypes-fr.json | 402 ++++++++++++++++++++- 2 files changed, 404 insertions(+), 24 deletions(-) (limited to 'ishtar_common/fixtures') diff --git a/ishtar_common/fixtures/initial_data-fr.json b/ishtar_common/fixtures/initial_data-fr.json index 9255c604e..7a6880662 100644 --- a/ishtar_common/fixtures/initial_data-fr.json +++ b/ishtar_common/fixtures/initial_data-fr.json @@ -212,6 +212,7 @@ 83, 84, 78, + 54, 58, 59, 60, @@ -337,26 +338,27 @@ "txt_idx": "head_scientist", "groups": [ 1, + 40, + 41, + 42, + 46, + 47, + 48, 50, + 54, + 58, + 59, + 60, + 63, 70, 71, 72, - 41, 74, 77, - 46, - 47, - 48, - 40, + 78, 82, 83, - 84, - 78, - 58, - 59, - 60, - 42, - 63 + 84 ], "label": "Responsable scientifique" } diff --git a/ishtar_common/fixtures/initial_importtypes-fr.json b/ishtar_common/fixtures/initial_importtypes-fr.json index 115f6a985..3b43f0003 100644 --- a/ishtar_common/fixtures/initial_importtypes-fr.json +++ b/ishtar_common/fixtures/initial_importtypes-fr.json @@ -149,6 +149,23 @@ "name": "Ishtar - Mobilier" } }, + { + "pk": 23, + "model": "ishtar_common.importertype", + "fields": { + "description": "Importeur de mobilier + parcelles et UE", + "created_models": [ + 9, + 7 + ], + "is_template": true, + "unicity_keys": "external_id", + "users": [], + "slug": "ishtar_finds_parcels_and_cr", + "associated_models": 12, + "name": "Ishtar - Mobilier_COMBO" + } + }, { "pk": 17, "model": "ishtar_common.importertype", @@ -304,14 +321,6 @@ "description": "" } }, - { - "pk": 20, - "model": "ishtar_common.importerdefault", - "fields": { - "importer_type": 3, - "target": "authors" - } - }, { "pk": 1, "model": "ishtar_common.importerdefault", @@ -354,11 +363,10 @@ }, { "pk": 26, - "model": "ishtar_common.importerdefaultvalues", + "model": "ishtar_common.importerdefault", "fields": { - "default_target": 20, - "target": "author_type", - "value": "main_author" + "importer_type": 19, + "target": "public_domain" } }, { @@ -406,6 +414,15 @@ "value": "main_author" } }, + { + "pk": 32, + "model": "ishtar_common.importerdefaultvalues", + "fields": { + "default_target": 26, + "target": "public_domain", + "value": "False" + } + }, { "pk": 336, "model": "ishtar_common.importercolumn", @@ -887,6 +904,84 @@ "export_field_name": null } }, + { + "pk": 391, + "model": "ishtar_common.importercolumn", + "fields": { + "col_number": 1, + "description": "Code PATRIARCHE ou code num\u00e9rique (entier) UNIQUE pour une op\u00e9ration.", + "regexp_pre_filter": null, + "required": true, + "label": "Code op\u00e9ration", + "importer_type": 23, + "export_field_name": "base_finds__context_record__operation__code_patriarche" + } + }, + { + "pk": 392, + "model": "ishtar_common.importercolumn", + "fields": { + "col_number": 2, + "description": "Commune (via num\u00e9ro INSEE).", + "regexp_pre_filter": null, + "required": true, + "label": "INSEE", + "importer_type": 23, + "export_field_name": "base_finds__context_record__parcel__town__numero_insee" + } + }, + { + "pk": 393, + "model": "ishtar_common.importercolumn", + "fields": { + "col_number": 3, + "description": "Section (identifiant externe), soit des lettres formant la section . Exemple : \"ZA\".", + "regexp_pre_filter": null, + "required": true, + "label": "Section de parcellaire", + "importer_type": 23, + "export_field_name": "base_finds__context_record__parcel__section" + } + }, + { + "pk": 394, + "model": "ishtar_common.importercolumn", + "fields": { + "col_number": 4, + "description": "Num\u00e9ro de la parcelle, soit des chiffres sans espaces. Exemple : \"253\".", + "regexp_pre_filter": null, + "required": true, + "label": "Num\u00e9ro de parcelle", + "importer_type": 23, + "export_field_name": "base_finds__context_record__parcel__parcel_number" + } + }, + { + "pk": 395, + "model": "ishtar_common.importercolumn", + "fields": { + "col_number": 5, + "description": "Label / Identifiant (externe) de l'UE. Exemple : \"US 145\", \"Tranch\u00e9e 145\", \"145\", \"St 17\", etc. Doit \u00eatre unique pour une parcelle donn\u00e9e.", + "regexp_pre_filter": null, + "required": true, + "label": "Label UE", + "importer_type": 23, + "export_field_name": "base_finds__context_record__label" + } + }, + { + "pk": 396, + "model": "ishtar_common.importercolumn", + "fields": { + "col_number": 6, + "description": "Identifiant libre pour le mobilier. Exemple : \"12\", \"Lot 24\", \"Sac vert\", etc.\r\nDoit \u00eatre unique \u00e0 l'\u00e9chelle de l'UE associ\u00e9e.", + "regexp_pre_filter": null, + "required": true, + "label": "Label mobilier", + "importer_type": 23, + "export_field_name": "label" + } + }, { "pk": 265, "model": "ishtar_common.importercolumn", @@ -4675,6 +4770,76 @@ "force_new": false } }, + { + "pk": 417, + "model": "ishtar_common.importtarget", + "fields": { + "comment": "", + "target": "base_finds__context_record__external_id", + "column": 392, + "formater_type": 28, + "concat_str": "-", + "regexp_filter": null, + "concat": false, + "force_new": false + } + }, + { + "pk": 421, + "model": "ishtar_common.importtarget", + "fields": { + "comment": "", + "target": "base_finds__label", + "column": 396, + "formater_type": 3, + "concat_str": "", + "regexp_filter": null, + "concat": false, + "force_new": false + } + }, + { + "pk": 419, + "model": "ishtar_common.importtarget", + "fields": { + "comment": "", + "target": "base_finds__context_record__external_id", + "column": 394, + "formater_type": 35, + "concat_str": "-", + "regexp_filter": null, + "concat": false, + "force_new": false + } + }, + { + "pk": 423, + "model": "ishtar_common.importtarget", + "fields": { + "comment": "", + "target": "base_finds__context_record__parcel__section", + "column": 393, + "formater_type": 7, + "concat_str": "", + "regexp_filter": null, + "concat": false, + "force_new": false + } + }, + { + "pk": 425, + "model": "ishtar_common.importtarget", + "fields": { + "comment": "", + "target": "base_finds__context_record__parcel__town__numero_insee", + "column": 337, + "formater_type": 28, + "concat_str": "", + "regexp_filter": null, + "concat": false, + "force_new": false + } + }, { "pk": 396, "model": "ishtar_common.importtarget", @@ -5081,6 +5246,20 @@ "force_new": false } }, + { + "pk": 416, + "model": "ishtar_common.importtarget", + "fields": { + "comment": "", + "target": "base_finds__context_record__external_id", + "column": 391, + "formater_type": 11, + "concat_str": "", + "regexp_filter": null, + "concat": false, + "force_new": false + } + }, { "pk": 310, "model": "ishtar_common.importtarget", @@ -5249,6 +5428,34 @@ "force_new": false } }, + { + "pk": 418, + "model": "ishtar_common.importtarget", + "fields": { + "comment": "", + "target": "base_finds__context_record__external_id", + "column": 393, + "formater_type": 35, + "concat_str": "-", + "regexp_filter": null, + "concat": false, + "force_new": false + } + }, + { + "pk": 420, + "model": "ishtar_common.importtarget", + "fields": { + "comment": "", + "target": "base_finds__context_record__external_id", + "column": 395, + "formater_type": 3, + "concat_str": "-", + "regexp_filter": null, + "concat": false, + "force_new": false + } + }, { "pk": 355, "model": "ishtar_common.importtarget", @@ -5277,6 +5484,34 @@ "force_new": false } }, + { + "pk": 422, + "model": "ishtar_common.importtarget", + "fields": { + "comment": "", + "target": "base_finds__context_record__parcel__town__numero_insee", + "column": 392, + "formater_type": 11, + "concat_str": "", + "regexp_filter": null, + "concat": false, + "force_new": false + } + }, + { + "pk": 424, + "model": "ishtar_common.importtarget", + "fields": { + "comment": "", + "target": "base_finds__context_record__parcel__parcel_number", + "column": 394, + "formater_type": 8, + "concat_str": "", + "regexp_filter": null, + "concat": false, + "force_new": false + } + }, { "pk": 352, "model": "ishtar_common.importtarget", @@ -6258,5 +6493,148 @@ "concat": false, "force_new": false } + }, + { + "pk": 54, + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": 391, + "concat_str": "-", + "field_name": "base_finds__external_id", + "concat": false, + "force_new": false + } + }, + { + "pk": 55, + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": 391, + "concat_str": "-", + "field_name": "external_id", + "concat": false, + "force_new": false + } + }, + { + "pk": 56, + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": 392, + "concat_str": "-", + "field_name": "base_finds__external_id", + "concat": false, + "force_new": false + } + }, + { + "pk": 57, + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": 392, + "concat_str": "-", + "field_name": "external_id", + "concat": false, + "force_new": false + } + }, + { + "pk": 58, + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": 393, + "concat_str": "-", + "field_name": "base_finds__external_id", + "concat": false, + "force_new": false + } + }, + { + "pk": 59, + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": 393, + "concat_str": "-", + "field_name": "external_id", + "concat": false, + "force_new": false + } + }, + { + "pk": 62, + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": 395, + "concat_str": "-", + "field_name": "base_finds__external_id", + "concat": false, + "force_new": false + } + }, + { + "pk": 63, + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": 395, + "concat_str": "-", + "field_name": "external_id", + "concat": false, + "force_new": false + } + }, + { + "pk": 64, + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": 396, + "concat_str": "", + "field_name": "label", + "concat": false, + "force_new": false + } + }, + { + "pk": 65, + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": 396, + "concat_str": "-", + "field_name": "base_finds__external_id", + "concat": false, + "force_new": false + } + }, + { + "pk": 66, + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": 396, + "concat_str": "-", + "field_name": "external_id", + "concat": false, + "force_new": false + } + }, + { + "pk": 60, + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": 394, + "concat_str": "-", + "field_name": "base_finds__external_id", + "concat": false, + "force_new": false + } + }, + { + "pk": 61, + "model": "ishtar_common.importerduplicatefield", + "fields": { + "column": 394, + "concat_str": "-", + "field_name": "external_id", + "concat": false, + "force_new": false + } } ] \ No newline at end of file -- cgit v1.2.3 From 9a233cc46c39786c0743194a10a5c6e1f3491458 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 26 Jul 2017 10:19:43 +0200 Subject: Fixtures: add documenttemplate --- ishtar_common/fixtures/initial_data-fr.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'ishtar_common/fixtures') diff --git a/ishtar_common/fixtures/initial_data-fr.json b/ishtar_common/fixtures/initial_data-fr.json index 7a6880662..b4447559e 100644 --- a/ishtar_common/fixtures/initial_data-fr.json +++ b/ishtar_common/fixtures/initial_data-fr.json @@ -1157,5 +1157,25 @@ "txt_idx": "a6", "label": "A6" } + }, + { + "pk": 2, + "model": "ishtar_common.documenttemplate", + "fields": { + "associated_object_name": "archaeological_operations.models.AdministrativeAct", + "available": true, + "name": "Accus\u00e9 de r\u00e9ception d'un dossier", + "template": "upload/templates/ISHTAR_FILE_ACT_AR_Neutre_1.odt" + } + }, + { + "pk": 1, + "model": "ishtar_common.documenttemplate", + "fields": { + "associated_object_name": "archaeological_operations.models.AdministrativeAct", + "available": true, + "name": "Document de r\u00e9f\u00e9rence", + "template": "upload/templates/document_reference.odt" + } } ] \ No newline at end of file -- cgit v1.2.3