diff options
| -rw-r--r-- | archaeological_operations/fixtures/initial_data-fr.json | 958 | ||||
| -rw-r--r-- | archaeological_operations/fixtures/initial_data.json | 903 | ||||
| -rw-r--r-- | archaeological_operations/import_from_dbf.py | 4 | ||||
| -rw-r--r-- | ishtar_common/models.py | 1 | 
4 files changed, 961 insertions, 905 deletions
| diff --git a/archaeological_operations/fixtures/initial_data-fr.json b/archaeological_operations/fixtures/initial_data-fr.json new file mode 100644 index 000000000..760bfe281 --- /dev/null +++ b/archaeological_operations/fixtures/initial_data-fr.json @@ -0,0 +1,958 @@ +[ +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": null,  +            "available": true,  +            "preventive": true,  +            "txt_idx": "assistance_preparation_help",  +            "label": "Aide \u00e0 la pr\u00e9paration de publication" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": null,  +            "available": true,  +            "preventive": true,  +            "txt_idx": "other_study",  +            "label": "Autre \u00e9tude" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": "Une op\u00e9ration arch\u00e9ologique visant \u00e0 qualifier et quantifier la pr\u00e9sence de vestiges sur une surface donn\u00e9e.",  +            "available": true,  +            "preventive": true,  +            "txt_idx": "arch_diagnostic",  +            "label": "Diagnostic arch\u00e9ologique" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "preventive": true,  +            "txt_idx": "building_study",  +            "label": "\u00c9tude de b\u00e2ti (pr\u00e9ventif)" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "preventive": true,  +            "txt_idx": "building_study_research",  +            "label": "\u00c9tude de b\u00e2ti (programm\u00e9)" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "preventive": true,  +            "txt_idx": "documents_study",  +            "label": "\u00c9tude documentaire (pr\u00e9ventif)" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "preventive": false,  +            "txt_idx": "documents_study_research",  +            "label": "\u00c9tude documentaire (programm\u00e9)" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "preventive": true,  +            "txt_idx": "evaluation",  +            "label": "\u00c9valuation" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": null,  +            "available": true,  +            "preventive": true,  +            "txt_idx": "ancient_excavation",  +            "label": "Fouille ancienne" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": "A pr\u00e9ciser",  +            "available": true,  +            "preventive": true,  +            "txt_idx": "prev_excavation",  +            "label": "Fouille arch\u00e9ologique pr\u00e9ventive" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "preventive": false,  +            "txt_idx": "prog_excavation",  +            "label": "Fouille arch\u00e9ologique programm\u00e9e" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "preventive": false,  +            "txt_idx": "prog_excavation_multiyear",  +            "label": "Fouille arch\u00e9ologique programm\u00e9e pluriannuelle" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": null,  +            "available": true,  +            "preventive": false,  +            "txt_idx": "analysis_program",  +            "label": "Programme d'analyses" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "preventive": false,  +            "txt_idx": "collective_research_project",  +            "label": "Projet Collectif de Recherche" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "preventive": false,  +            "txt_idx": "aerial_survey_research",  +            "label": "Prospection a\u00e9rienne" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": null,  +            "available": true,  +            "preventive": false,  +            "txt_idx": "specialized_eqp_prospection",  +            "label": "Prospection avec mat\u00e9riel sp\u00e9cialis\u00e9" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "preventive": false,  +            "txt_idx": "rock_art_survey",  +            "label": "Prospection avec relev\u00e9 d'art rupestre" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": null,  +            "available": true,  +            "preventive": false,  +            "txt_idx": "metal_detector_prospection",  +            "label": "Prospection d\u00e9tecteur de m\u00e9taux" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": null,  +            "available": true,  +            "preventive": false,  +            "txt_idx": "diachronic_prospection",  +            "label": "Prospection diachronique" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "preventive": false,  +            "txt_idx": "inventory_survey_research",  +            "label": "Prospection inventaire" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "preventive": false,  +            "txt_idx": "survey_research",  +            "label": "Prospection (programm\u00e9)" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": null,  +            "available": true,  +            "preventive": false,  +            "txt_idx": "thematic_prospection",  +            "label": "Prospection th\u00e9matique" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": "Une campagne de prospection sur un th\u00e8me particulier",  +            "available": true,  +            "preventive": false,  +            "txt_idx": "thematic_survey",  +            "label": "Prospection th\u00e9matique" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": null,  +            "available": true,  +            "preventive": false,  +            "txt_idx": "cave_art_record",  +            "label": "Relev\u00e9 d'art rupestre" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": null,  +            "available": true,  +            "preventive": true,  +            "txt_idx": "emergency_excavation",  +            "label": "Sauvetage urgent" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.operationtype",  +        "fields": { +            "comment": "Pas assez gros pour \u00eatre une fouille, mais porte n\u00e9anmoins atteinte au sous-sol.",  +            "available": true,  +            "preventive": false,  +            "txt_idx": "sampling_research",  +            "label": "Sondage" +        } +    }, +    { +        "pk": null,  +        "model": "archaeological_operations.remaintype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "txt_idx": "villa",  +            "label": "villa" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.remaintype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "txt_idx": "enclosure",  +            "label": "enclos" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.remaintype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "txt_idx": "church",  +            "label": "\u00e9glise" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.remaintype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "txt_idx": "pit",  +            "label": "fosse" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.remaintype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "txt_idx": "cairn",  +            "label": "cairn" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.remaintype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "txt_idx": "ditch",  +            "label": "foss\u00e9" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.remaintype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "txt_idx": "post_hole",  +            "label": "trous de poteaux" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": null,  +            "end_date": -10000,  +            "order": 2000,  +            "label": "Pal\u00e9olithique",  +            "start_date": -450000,  +            "txt_idx": "paleolithic" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "1100, 'Pal\u00e9olithique ancien', , )",  +            "available": true,  +            "parent": 1,  +            "end_date": -150000,  +            "order": 1100,  +            "label": "Pal\u00e9olithique ancien",  +            "start_date": -450000,  +            "txt_idx": "ancien_paleolithic" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "1200, '', , ),",  +            "available": true,  +            "parent": 1,  +            "end_date": -35000,  +            "order": 1200,  +            "label": "Pal\u00e9olithique moyen",  +            "start_date": -150000,  +            "txt_idx": "middle_paleolithic" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 1,  +            "end_date": -12000,  +            "order": 1300,  +            "label": "Pal\u00e9olithique sup\u00e9rieur",  +            "start_date": -35000,  +            "txt_idx": "late_paleolithic" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 1,  +            "end_date": -10000,  +            "order": 1400,  +            "label": "Pal\u00e9olithique sup\u00e9rieur final",  +            "start_date": -12000,  +            "txt_idx": "final_paleolithic" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": null,  +            "end_date": -5000,  +            "order": 3000,  +            "label": "M\u00e9solithique",  +            "start_date": -10000,  +            "txt_idx": "mesolithic" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 6,  +            "end_date": -7000,  +            "order": 2100,  +            "label": "M\u00e9solithique ancien",  +            "start_date": -10000,  +            "txt_idx": "old_mesolithic" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": false,  +            "parent": 6,  +            "end_date": 0,  +            "order": 2200,  +            "label": "M\u00e9solithique moyen",  +            "start_date": 0,  +            "txt_idx": "middle_mesolithic" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 6,  +            "end_date": -5000,  +            "order": 2300,  +            "label": "M\u00e9solithique r\u00e9cent",  +            "start_date": -7000,  +            "txt_idx": "recent_mesolithic" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": null,  +            "end_date": -2000,  +            "order": 4000,  +            "label": "N\u00e9olithique",  +            "start_date": -5500,  +            "txt_idx": "neolithic" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 10,  +            "end_date": -4500,  +            "order": 3100,  +            "label": "N\u00e9olithique ancien",  +            "start_date": -5500,  +            "txt_idx": "old_neolithic" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 10,  +            "end_date": -300,  +            "order": 3200,  +            "label": "N\u00e9olithique moyen",  +            "start_date": -4500,  +            "txt_idx": "middle_neolithic" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 10,  +            "end_date": -2500,  +            "order": 3300,  +            "label": "N\u00e9olithique r\u00e9cent",  +            "start_date": -3200,  +            "txt_idx": "recent_neolithic" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 10,  +            "end_date": -2000,  +            "order": 3400,  +            "label": "N\u00e9olithique final",  +            "start_date": -2800,  +            "txt_idx": "final_neolithic" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": null,  +            "end_date": -40,  +            "order": 5000,  +            "label": "Protohistoire",  +            "start_date": -2000,  +            "txt_idx": "protohistory" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 15,  +            "end_date": -750,  +            "order": 4100,  +            "label": "\u00c2ge du Bronze",  +            "start_date": -2000,  +            "txt_idx": "bronze_age" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 15,  +            "end_date": -40,  +            "order": 4200,  +            "label": "\u00c2ge du Fer",  +            "start_date": -800,  +            "txt_idx": "iron_age" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 16,  +            "end_date": -1600,  +            "order": 4110,  +            "label": "\u00c2ge du Bronze ancien",  +            "start_date": -2000,  +            "txt_idx": "old_bronze_age" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 16,  +            "end_date": -1200,  +            "order": 4120,  +            "label": "\u00c2ge du Bronze moyen",  +            "start_date": -1600,  +            "txt_idx": "middle_bronze_age" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 16,  +            "end_date": -750,  +            "order": 4130,  +            "label": "\u00c2ge du Bronze final",  +            "start_date": -1200,  +            "txt_idx": "final_bronze_age" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 17,  +            "end_date": -450,  +            "order": 4210,  +            "label": "Premier \u00c2ge du Fer",  +            "start_date": -800,  +            "txt_idx": "first_iron_age" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 17,  +            "end_date": -40,  +            "order": 4220,  +            "label": "Deuxi\u00e8me \u00c2ge du Fer",  +            "start_date": -500,  +            "txt_idx": "second_iron_age" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": null,  +            "end_date": 476,  +            "order": 6000,  +            "label": "Gallo-romain",  +            "start_date": -40,  +            "txt_idx": "gallo-roman" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 23,  +            "end_date": -27,  +            "order": 5100,  +            "label": "R\u00e9publique",  +            "start_date": -40,  +            "txt_idx": "republic" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 23,  +            "end_date": 192,  +            "order": 5200,  +            "label": "Haut-empire",  +            "start_date": -27,  +            "txt_idx": "high-empire" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 23,  +            "end_date": 476,  +            "order": 5300,  +            "label": "Bas-empire",  +            "start_date": 192,  +            "txt_idx": "low_empire" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": null,  +            "end_date": 1492,  +            "order": 7000,  +            "label": "Moyen-\u00e2ge",  +            "start_date": 476,  +            "txt_idx": "middle_age" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 27,  +            "end_date": 987,  +            "order": 6100,  +            "label": "Haut moyen-\u00e2ge",  +            "start_date": 476,  +            "txt_idx": "high_middle_age" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 27,  +            "end_date": 1204,  +            "order": 6200,  +            "label": "Moyen-\u00e2ge classique",  +            "start_date": 987,  +            "txt_idx": "classic_middle_age" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 27,  +            "end_date": 1492,  +            "order": 6300,  +            "label": "Bas moyen-\u00e2ge",  +            "start_date": 1204,  +            "txt_idx": "low_middle_age" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": null,  +            "end_date": 2011,  +            "order": 8000,  +            "label": "P\u00e9riode r\u00e9cente",  +            "start_date": 1492,  +            "txt_idx": "recent_times" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 31,  +            "end_date": 1815,  +            "order": 7100,  +            "label": "Epoque moderne",  +            "start_date": 1492,  +            "txt_idx": "modern" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": 31,  +            "end_date": 2011,  +            "order": 7200,  +            "label": "Epoque contemporaine",  +            "start_date": 1815,  +            "txt_idx": "contemporan" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": null,  +            "end_date": 0,  +            "order": 0,  +            "label": "Epoque ind\u00e9termin\u00e9e",  +            "start_date": 0,  +            "txt_idx": "indetermined" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.period",  +        "fields": { +            "comment": "",  +            "available": true,  +            "parent": null,  +            "end_date": 0,  +            "order": 10000,  +            "label": "Non-renseign\u00e9",  +            "start_date": 0,  +            "txt_idx": "not_yet_documented" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.acttype",  +        "fields": { +            "comment": "Suite \u00e0 une demande d'avis, les SRA \u00e9met un courrier signalant sa volont\u00e9 de prescrire un diagnostic ou une fouille sur l'emprise du projet en objet.",  +            "available": true,  +            "txt_idx": "pos_advice_reply",  +            "intented_to": "F",  +            "label": "R\u00e9ponse positive \u00e0 une demande d'avis (art.10)" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.acttype",  +        "fields": { +            "comment": "Suite \u00e0 une demande d'avis, les SRA \u00e9met un courrier signalant sa volont\u00e9 de NE PAS prescrire un diagnostic ou une fouille sur l'emprise du projet en objet.",  +            "available": true,  +            "txt_idx": "neg_advice_reply",  +            "intented_to": "F",  +            "label": "R\u00e9ponse n\u00e9gative \u00e0 une demande d'avis (art.10)" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.acttype",  +        "fields": { +            "comment": "Suite \u00e0 une Saisine (art.8), envoi d'une r\u00e9ponse de non prescription",  +            "available": true,  +            "txt_idx": "reply_no_prescription",  +            "intented_to": "F",  +            "label": "R\u00e9ponse NON prescription \u00e0 une saisine" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.acttype",  +        "fields": { +            "comment": "Arr\u00eat\u00e9 donnant l'autorisation \u00e0 une responsable scientifique de fouiller sur un terrain donn\u00e9.",  +            "available": true,  +            "txt_idx": "prog_excav_autorization_order",  +            "intented_to": "O",  +            "label": "Arr\u00eat\u00e9 d'autorisation de fouille programm\u00e9e" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.acttype",  +        "fields": { +            "comment": "Arr\u00eat\u00e9 qui donne l'autorisation \u00e0 un Am\u00e9nageur de faire ex\u00e9cuter par un Op\u00e9rateur agr\u00e9e sous la responsabilit\u00e9 d'un Responsable scientifique, une op\u00e9ration.",  +            "available": true,  +            "txt_idx": "excavation_autorization_order",  +            "intented_to": "O",  +            "label": "Arr\u00eat\u00e9 d'autorisation de fouille pr\u00e9ventive" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.acttype",  +        "fields": { +            "comment": "Un arr\u00eat\u00e9 prescrivant la r\u00e9alisation d'une fouille sur une surface donn\u00e9e",  +            "available": true,  +            "txt_idx": "excavation_order",  +            "intented_to": "O",  +            "label": "Arr\u00eat\u00e9 de prescription de fouille" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.acttype",  +        "fields": { +            "comment": "Un arr\u00eat\u00e9 prescrivant la r\u00e9alisation d'un diagnostic sur une surface donn\u00e9e, SANS pr\u00e9cision du responsable scientifique, SANS pr\u00e9cision de l'op\u00e9rateur",  +            "available": true,  +            "txt_idx": "diagnostic_order",  +            "intented_to": "O",  +            "label": "Arr\u00eat\u00e9 de diagnostic, sans RS, sans op\u00e9rateur" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.acttype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "txt_idx": "responsible_act",  +            "intented_to": "O",  +            "label": "Arr\u00eat\u00e9 de d\u00e9signation de RS" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.acttype",  +        "fields": { +            "comment": "D\u00e9signation de l'op\u00e9rateur pour un diagnostic : utile dans le cas o\u00f9 un service territorial ET l'INRAP sont en m\u00eame temps comp\u00e9tents pour un territoire donn\u00e9.",  +            "available": true,  +            "txt_idx": "operator_designation_act",  +            "intented_to": "O",  +            "label": "Arr\u00eat\u00e9 de d\u00e9signation d'op\u00e9rateur" +        } +    },  +    { +        "pk": null,  +        "model": "archaeological_operations.acttype",  +        "fields": { +            "comment": "",  +            "available": true,  +            "txt_idx": "thematic_survey_act",  +            "intented_to": "O",  +            "label": "Arr\u00eat\u00e9 d'autorisation de prospection th\u00e9matique" +        } +    } +] diff --git a/archaeological_operations/fixtures/initial_data.json b/archaeological_operations/fixtures/initial_data.json deleted file mode 100644 index eeb2474a6..000000000 --- a/archaeological_operations/fixtures/initial_data.json +++ /dev/null @@ -1,903 +0,0 @@ -[ - { -  "pk": 1,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "Une op\u00e9ration arch\u00e9ologique visant \u00e0 qualifier et quantifier la pr\u00e9sence de vestiges sur une surface donn\u00e9e.",  -   "available": true,  -   "txt_idx": "arch_diagnostic",  -   "label": "Diagnostic arch\u00e9ologique",  -   "preventive": true -  } - },  - { -  "pk": 2,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "A pr\u00e9ciser",  -   "available": true,  -   "txt_idx": "prev_excavation",  -   "label": "Fouille arch\u00e9ologique pr\u00e9ventive",  -   "preventive": true -  } - },  - { -  "pk": 3,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "prog_excavation",  -   "label": "Fouille arch\u00e9ologique programm\u00e9e",  -   "preventive": false -  } - },  - { -  "pk": 4,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "Pas assez gros pour \u00eatre une fouille, mais porte n\u00e9anmoins atteinte au sous-sol.",  -   "available": true,  -   "txt_idx": "sampling",  -   "label": "Sondage (pr\u00e9ventif)",  -   "preventive": true -  } - },  - { -  "pk": 5,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "Une campagne de prospection sur un th\u00e8me particulier",  -   "available": true,  -   "txt_idx": "thematic_survey",  -   "label": "Prospection th\u00e9matique",  -   "preventive": false -  } - },  - { -  "pk": 6,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "Prospection visant \u00e0 d\u00e9tecter tout type de vestiges  (ou presque) sur une surface donn\u00e9e. ",  -   "available": true,  -   "txt_idx": "inventory_survey",  -   "label": "Prospection inventaire (pr\u00e9ventif)",  -   "preventive": true -  } - },  - { -  "pk": 7,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "building_study",  -   "label": "\u00c9tude de b\u00e2ti (pr\u00e9ventif)",  -   "preventive": true -  } - },  - { -  "pk": 8,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "building_study_research",  -   "label": "\u00c9tude de b\u00e2ti (programm\u00e9)",  -   "preventive": true -  } - },  - { -  "pk": 9,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "", -   "available": true,  -   "txt_idx": "arch_diagnostic_research",  -   "label": "Diagnostic arch\u00e9ologique (programm\u00e9)",  -   "preventive": false -  } - },  - { -  "pk": 10,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "", -   "available": true,  -   "txt_idx": "documents_study",  -   "label": "\u00c9tude documentaire (pr\u00e9ventif)",  -   "preventive": true -  } - },  - { -  "pk": 11,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "", -   "available": true,  -   "txt_idx": "documents_study_research",  -   "label": "\u00c9tude documentaire (programm\u00e9)",  -   "preventive": false -  } - },  - { -  "pk": 12,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "", -   "available": true,  -   "txt_idx": "evaluation",  -   "label": "\u00c9valuation",  -   "preventive": true -  } - },  - { -  "pk": 13,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "prog_excavation_multiyear",  -   "label": "Fouille arch\u00e9ologique programm\u00e9e pluriannuelle",  -   "preventive": false -  } - },  - { -  "pk": 14,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "aerial_survey_research",  -   "label": "Prospection a\u00e9rienne (programm\u00e9)", -   "preventive": false -  } - },  - { -  "pk": 15,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "aerial_survey",  -   "label": "Prospection a\u00e9rienne (pr\u00e9ventif)", -   "preventive": true -  } - },  - { -  "pk": 16,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "collective_research_project",  -   "label": "Projet Collectif de Recherche", -   "preventive": false -  } - },  - { -  "pk": 17,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "inventory_survey_research",  -   "label": "Prospection inventaire (programm\u00e9)", -   "preventive": false -  } - },  - { -  "pk": 18,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "survey_research",  -   "label": "Prospection (programm\u00e9)", -   "preventive": false -  } - },  - { -  "pk": 19,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "survey",  -   "label": "Prospection (pr\u00e9ventif)", -   "preventive": true -  } - },  - { -  "pk": 20,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "rock_art_survey",  -   "label": "Prospection avec relev\u00e9 d'art rupestre", -   "preventive": false -  } - },  - { -  "pk": 21,  -  "model": "archaeological_operations.operationtype",  -  "fields": { -   "comment": "Pas assez gros pour \u00eatre une fouille, mais porte n\u00e9anmoins atteinte au sous-sol.",  -   "available": true,  -   "txt_idx": "sampling_research",  -   "label": "Sondage (programm\u00e9)",  -   "preventive": false -  } - },  - { -  "pk": 1,  -  "model": "archaeological_operations.remaintype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "villa",  -   "label": "villa" -  } - },  - { -  "pk": 2,  -  "model": "archaeological_operations.remaintype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "enclosure",  -   "label": "enclos" -  } - },  - { -  "pk": 3,  -  "model": "archaeological_operations.remaintype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "church",  -   "label": "\u00e9glise" -  } - },  - { -  "pk": 4,  -  "model": "archaeological_operations.remaintype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "pit",  -   "label": "fosse" -  } - },  - { -  "pk": 5,  -  "model": "archaeological_operations.remaintype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "cairn",  -   "label": "cairn" -  } - },  - { -  "pk": 6,  -  "model": "archaeological_operations.remaintype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "ditch",  -   "label": "foss\u00e9" -  } - },  - { -  "pk": 7,  -  "model": "archaeological_operations.remaintype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "post_hole",  -   "label": "trous de poteaux" -  } - },  - { -  "pk": 1,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": null,  -   "end_date": -10000,  -   "order": 2000,  -   "label": "Pal\u00e9olithique",  -   "start_date": -450000,  -   "txt_idx": "paleolithic" -  } - },  - { -  "pk": 2,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "1100, 'Pal\u00e9olithique ancien', , )",  -   "available": true,  -   "parent": 1,  -   "end_date": -150000,  -   "order": 1100,  -   "label": "Pal\u00e9olithique ancien",  -   "start_date": -450000,  -   "txt_idx": "ancien_paleolithic" -  } - },  - { -  "pk": 3,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "1200, '', , ),",  -   "available": true,  -   "parent": 1,  -   "end_date": -35000,  -   "order": 1200,  -   "label": "Pal\u00e9olithique moyen",  -   "start_date": -150000,  -   "txt_idx": "middle_paleolithic" -  } - },  - { -  "pk": 4,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 1,  -   "end_date": -12000,  -   "order": 1300,  -   "label": "Pal\u00e9olithique sup\u00e9rieur",  -   "start_date": -35000,  -   "txt_idx": "late_paleolithic" -  } - },  - { -  "pk": 5,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 1,  -   "end_date": -10000,  -   "order": 1400,  -   "label": "Pal\u00e9olithique sup\u00e9rieur final",  -   "start_date": -12000,  -   "txt_idx": "final_paleolithic" -  } - },  - { -  "pk": 6,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": null,  -   "end_date": -5000,  -   "order": 3000,  -   "label": "M\u00e9solithique",  -   "start_date": -10000,  -   "txt_idx": "mesolithic" -  } - },  - { -  "pk": 7,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 6,  -   "end_date": -7000,  -   "order": 2100,  -   "label": "M\u00e9solithique ancien",  -   "start_date": -10000,  -   "txt_idx": "old_mesolithic" -  } - },  - { -  "pk": 8,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": false,  -   "parent": 6,  -   "end_date": 0,  -   "order": 2200,  -   "label": "M\u00e9solithique moyen",  -   "start_date": 0,  -   "txt_idx": "middle_mesolithic" -  } - },  - { -  "pk": 9,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 6,  -   "end_date": -5000,  -   "order": 2300,  -   "label": "M\u00e9solithique r\u00e9cent",  -   "start_date": -7000,  -   "txt_idx": "recent_mesolithic" -  } - },  - { -  "pk": 10,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": null,  -   "end_date": -2000,  -   "order": 4000,  -   "label": "N\u00e9olithique",  -   "start_date": -5500,  -   "txt_idx": "neolithic" -  } - },  - { -  "pk": 11,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 10,  -   "end_date": -4500,  -   "order": 3100,  -   "label": "N\u00e9olithique ancien",  -   "start_date": -5500,  -   "txt_idx": "old_neolithic" -  } - },  - { -  "pk": 12,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 10,  -   "end_date": -300,  -   "order": 3200,  -   "label": "N\u00e9olithique moyen",  -   "start_date": -4500,  -   "txt_idx": "middle_neolithic" -  } - },  - { -  "pk": 13,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 10,  -   "end_date": -2500,  -   "order": 3300,  -   "label": "N\u00e9olithique r\u00e9cent",  -   "start_date": -3200,  -   "txt_idx": "recent_neolithic" -  } - },  - { -  "pk": 14,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 10,  -   "end_date": -2000,  -   "order": 3400,  -   "label": "N\u00e9olithique final",  -   "start_date": -2800,  -   "txt_idx": "final_neolithic" -  } - },  - { -  "pk": 15,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": null,  -   "end_date": -40,  -   "order": 5000,  -   "label": "Protohistoire",  -   "start_date": -2000,  -   "txt_idx": "protohistory" -  } - },  - { -  "pk": 16,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 15,  -   "end_date": -750,  -   "order": 4100,  -   "label": "\u00c2ge du Bronze",  -   "start_date": -2000,  -   "txt_idx": "bronze_age" -  } - },  - { -  "pk": 17,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 15,  -   "end_date": -40,  -   "order": 4200,  -   "label": "\u00c2ge du Fer",  -   "start_date": -800,  -   "txt_idx": "iron_age" -  } - },  - { -  "pk": 18,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 16,  -   "end_date": -1600,  -   "order": 4110,  -   "label": "\u00c2ge du Bronze ancien",  -   "start_date": -2000,  -   "txt_idx": "old_bronze_age" -  } - },  - { -  "pk": 19,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 16,  -   "end_date": -1200,  -   "order": 4120,  -   "label": "\u00c2ge du Bronze moyen",  -   "start_date": -1600,  -   "txt_idx": "middle_bronze_age" -  } - },  - { -  "pk": 20,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 16,  -   "end_date": -750,  -   "order": 4130,  -   "label": "\u00c2ge du Bronze final",  -   "start_date": -1200,  -   "txt_idx": "final_bronze_age" -  } - },  - { -  "pk": 21,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 17,  -   "end_date": -450,  -   "order": 4210,  -   "label": "Premier \u00c2ge du Fer",  -   "start_date": -800,  -   "txt_idx": "first_iron_age" -  } - },  - { -  "pk": 22,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 17,  -   "end_date": -40,  -   "order": 4220,  -   "label": "Deuxi\u00e8me \u00c2ge du Fer",  -   "start_date": -500,  -   "txt_idx": "second_iron_age" -  } - },  - { -  "pk": 23,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": null,  -   "end_date": 476,  -   "order": 6000,  -   "label": "Gallo-romain",  -   "start_date": -40,  -   "txt_idx": "gallo-roman" -  } - },  - { -  "pk": 24,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 23,  -   "end_date": -27,  -   "order": 5100,  -   "label": "R\u00e9publique",  -   "start_date": -40,  -   "txt_idx": "republic" -  } - },  - { -  "pk": 25,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 23,  -   "end_date": 192,  -   "order": 5200,  -   "label": "Haut-empire",  -   "start_date": -27,  -   "txt_idx": "high-empire" -  } - },  - { -  "pk": 26,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 23,  -   "end_date": 476,  -   "order": 5300,  -   "label": "Bas-empire",  -   "start_date": 192,  -   "txt_idx": "low_empire" -  } - },  - { -  "pk": 27,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": null,  -   "end_date": 1492,  -   "order": 7000,  -   "label": "Moyen-\u00e2ge",  -   "start_date": 476,  -   "txt_idx": "middle_age" -  } - },  - { -  "pk": 28,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 27,  -   "end_date": 987,  -   "order": 6100,  -   "label": "Haut moyen-\u00e2ge",  -   "start_date": 476,  -   "txt_idx": "high_middle_age" -  } - },  - { -  "pk": 29,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 27,  -   "end_date": 1204,  -   "order": 6200,  -   "label": "Moyen-\u00e2ge classique",  -   "start_date": 987,  -   "txt_idx": "classic_middle_age" -  } - },  - { -  "pk": 30,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 27,  -   "end_date": 1492,  -   "order": 6300,  -   "label": "Bas moyen-\u00e2ge",  -   "start_date": 1204,  -   "txt_idx": "low_middle_age" -  } - },  - { -  "pk": 31,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": null,  -   "end_date": 2011,  -   "order": 8000,  -   "label": "P\u00e9riode r\u00e9cente",  -   "start_date": 1492,  -   "txt_idx": "recent_times" -  } - },  - { -  "pk": 32,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 31,  -   "end_date": 1815,  -   "order": 7100,  -   "label": "Epoque moderne",  -   "start_date": 1492,  -   "txt_idx": "modern" -  } - },  - { -  "pk": 33,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": 31,  -   "end_date": 2011,  -   "order": 7200,  -   "label": "Epoque contemporaine",  -   "start_date": 1815,  -   "txt_idx": "contemporan" -  } - },  - { -  "pk": 34,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": null,  -   "end_date": 0,  -   "order": 0,  -   "label": "Epoque ind\u00e9termin\u00e9e",  -   "start_date": 0,  -   "txt_idx": "indetermined" -  } - },  - { -  "pk": 35,  -  "model": "archaeological_operations.period",  -  "fields": { -   "comment": "",  -   "available": true,  -   "parent": null,  -   "end_date": 0,  -   "order": 10000,  -   "label": "Non-renseign\u00e9",  -   "start_date": 0,  -   "txt_idx": "not_yet_documented" -  } - },  - { -  "pk": 3,  -  "model": "archaeological_operations.acttype",  -  "fields": { -   "comment": "Suite \u00e0 une demande d'avis, les SRA \u00e9met un courrier signalant sa volont\u00e9 de prescrire un diagnostic ou une fouille sur l'emprise du projet en objet.",  -   "available": true,  -   "txt_idx": "pos_advice_reply",  -   "intented_to": "F",  -   "label": "R\u00e9ponse positive \u00e0 une demande d'avis (art.10)" -  } - },  - { -  "pk": 4,  -  "model": "archaeological_operations.acttype",  -  "fields": { -   "comment": "Suite \u00e0 une demande d'avis, les SRA \u00e9met un courrier signalant sa volont\u00e9 de NE PAS prescrire un diagnostic ou une fouille sur l'emprise du projet en objet.",  -   "available": true,  -   "txt_idx": "neg_advice_reply",  -   "intented_to": "F",  -   "label": "R\u00e9ponse n\u00e9gative \u00e0 une demande d'avis (art.10)" -  } - },  - { -  "pk": 7,  -  "model": "archaeological_operations.acttype",  -  "fields": { -   "comment": "Suite \u00e0 une Saisine (art.8), envoi d'une r\u00e9ponse de non prescription",  -   "available": true,  -   "txt_idx": "reply_no_prescription",  -   "intented_to": "F",  -   "label": "R\u00e9ponse NON prescription \u00e0 une saisine" -  } - },  - { -  "pk": 6,  -  "model": "archaeological_operations.acttype",  -  "fields": { -   "comment": "Arr\u00eat\u00e9 donnant l'autorisation \u00e0 une responsable scientifique de fouiller sur un terrain donn\u00e9.",  -   "available": true,  -   "txt_idx": "prog_excav_autorization_order",  -   "intented_to": "O",  -   "label": "Arr\u00eat\u00e9 d'autorisation de fouille programm\u00e9e" -  } - },  - { -  "pk": 5,  -  "model": "archaeological_operations.acttype",  -  "fields": { -   "comment": "Arr\u00eat\u00e9 qui donne l'autorisation \u00e0 un Am\u00e9nageur de faire ex\u00e9cuter par un Op\u00e9rateur agr\u00e9e sous la responsabilit\u00e9 d'un Responsable scientifique, une op\u00e9ration.",  -   "available": true,  -   "txt_idx": "excavation_autorization_order",  -   "intented_to": "O",  -   "label": "Arr\u00eat\u00e9 d'autorisation de fouille pr\u00e9ventive" -  } - },  - { -  "pk": 2,  -  "model": "archaeological_operations.acttype",  -  "fields": { -   "comment": "Un arr\u00eat\u00e9 prescrivant la r\u00e9alisation d'une fouille sur une surface donn\u00e9e",  -   "available": true,  -   "txt_idx": "excavation_order",  -   "intented_to": "O",  -   "label": "Arr\u00eat\u00e9 de prescription de fouille" -  } - },  - { -  "pk": 1,  -  "model": "archaeological_operations.acttype",  -  "fields": { -   "comment": "Un arr\u00eat\u00e9 prescrivant la r\u00e9alisation d'un diagnostic sur une surface donn\u00e9e, SANS pr\u00e9cision du responsable scientifique, SANS pr\u00e9cision de l'op\u00e9rateur",  -   "available": true,  -   "txt_idx": "diagnostic_order",  -   "intented_to": "O",  -   "label": "Arr\u00eat\u00e9 de diagnostic, sans RS, sans op\u00e9rateur" -  } - },  - { -  "pk": 8,  -  "model": "archaeological_operations.acttype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "responsible_act",  -   "intented_to": "O",  -   "label": "Arr\u00eat\u00e9 de d\u00e9signation de RS" -  } - },  - { -  "pk": 9,  -  "model": "archaeological_operations.acttype",  -  "fields": { -   "comment": "D\u00e9signation de l'op\u00e9rateur pour un diagnostic : utile dans le cas o\u00f9 un service territorial ET l'INRAP sont en m\u00eame temps comp\u00e9tents pour un territoire donn\u00e9.",  -   "available": true,  -   "txt_idx": "operator_designation_act",  -   "intented_to": "O",  -   "label": "Arr\u00eat\u00e9 de d\u00e9signation d'op\u00e9rateur" -  } - },  - { -  "pk": 10,  -  "model": "archaeological_operations.acttype",  -  "fields": { -   "comment": "",  -   "available": true,  -   "txt_idx": "thematic_survey_act",  -   "intented_to": "O",  -   "label": "Arr\u00eat\u00e9 d'autorisation de prospection th\u00e9matique" -  } - } -] diff --git a/archaeological_operations/import_from_dbf.py b/archaeological_operations/import_from_dbf.py index 843e5151c..6b20f6e10 100644 --- a/archaeological_operations/import_from_dbf.py +++ b/archaeological_operations/import_from_dbf.py @@ -114,8 +114,8 @@ ope_types = {      'FP':('prog_excavation',            "Fouille programmée", False),      'MH':('building_study', "Fouille avant MH", True), -    'OPD':('diag_prev_excavation', -           "Opération préventive de diagnostic", True), +    'OPD':('arch_diagnostic', +           "Diagnostic archéologique", True),      'PAN':('analysis_program',             "Programme d'analyses", False),      'PCR':('collective_research_project', diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 458802087..754944389 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -159,6 +159,7 @@ class GeneralType(models.Model):      class Meta:          abstract = True +        unique_together = (('txt_idx', 'available'),)      def __unicode__(self):          return self.label | 
