diff --git a/docs/changelog.rst b/docs/changelog.rst index a7f94bc701..c99fe052f9 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -18,6 +18,7 @@ CHANGELOG - Add organizer_id on TouristicEvent endpoint (#3587) - Sort API V2 by begin date by default on touristic events (#3597) +- Add rules fixture on sensitive area (#3470) **Maintenance** @@ -60,7 +61,7 @@ CHANGELOG **Documentation** -- Replace broken link +- Replace broken link **Improvements** diff --git a/docs/install/advanced-configuration.rst b/docs/install/advanced-configuration.rst index 09708ff056..a48690b3c8 100644 --- a/docs/install/advanced-configuration.rst +++ b/docs/install/advanced-configuration.rst @@ -657,6 +657,14 @@ add the following code: See `sensitivity section <./sensitivity.html>`_ for settings and imports. + +You can insert rules of sensitive area with this command : + +:: + + sudo geotrek loaddata /opt/geotrek-admin/lib/python*/site-packages/geotrek/sensitivity/fixtures/rules.json + + Feedback reports settings ------------------------- @@ -677,7 +685,7 @@ Geotrek reports can work together with Suricate API, using one of 3 modes. Proce **1** - No Suricate (default) -This mode sends no report data to Suricate. +This mode sends no report data to Suricate. To initialize Report forms (Geotrek-admin, Geotrek-rando-v2, Geotrek-rando-v3) load lists for categories, activities, statuses and problem magnitude: @@ -755,7 +763,7 @@ To make these lists available for your Geotrek-rando, run ``sync_rando`` (see :r geotrek loaddata /opt/geotrek-admin/lib/python*/site-packages/geotrek/feedback/fixtures/management_workflow.json geotrek loaddata /opt/geotrek-admin/lib/python*/site-packages/geotrek/maintenance/fixtures/basic.json -- Go to the Admin Site and +- Go to the Admin Site and - if you want to include the moderation steps (`SKIP_MANAGER_MODERATION = False`), select a user as Workflow Manager (`/admin/feedback/workflowmanager/`). Their role is to assign reports to other users. - select a district as Workflow District (`/admin/feedback/workflowdistrict/`). This zone defines the area of reponsibility for reports. Reports relocated outside of the district will be excluded from workflow. - create predefined emails (`/admin/feedback/predefinedemail/`) to notify Suricate Sentinels and Administrators. You can use `##intervention_date##` and `##supervisor##` in the messages' body to automatically replace with the report's linked Intervention date and author. The Extended Username field will be dsiplayed (see User Profile under `/admin/auth/user/`). @@ -776,7 +784,7 @@ Display reports with status defined colors .. code-block :: python ENABLE_REPORT_COLORS_PER_STATUS = True - + Go to the Admin Site and select colors to display for each status (`/admin/feedback/reportstatus/`). diff --git a/geotrek/sensitivity/fixtures/rules.json b/geotrek/sensitivity/fixtures/rules.json new file mode 100644 index 0000000000..4ae4153511 --- /dev/null +++ b/geotrek/sensitivity/fixtures/rules.json @@ -0,0 +1,597 @@ +[ + { + "pk": 1, + "model": "sensitivity.rule", + "fields": { + "code": "DOGS-FORBIDDEN", + "name": "Chiens interdits, m\u00eame tenus en laisse", + "name_en": "Dogs forbidden, even on a leash", + "pictogram": "upload/DOGS-FORBIDDEN_011.svg", + "url": "", + "description": "Pour la tranquillit\u00e9 des animaux sauvages et domestiques.\\r\\n Les exceptions concernent les chiens de travail (chien d'avalanche, de conduite et de d\u00e9fense des troupeaux, chien d'aveugle) dans le cadre de leur activit\u00e9.", + "description_en": "For the tranquility of wild and domestic animals.\\r\\n Exceptions concern working dogs (avalanche dog, driving dog and herd defense dog, guide dog) as part of their activity.", + "name_fr": "Chiens interdits, m\u00eame tenus en laisse", + "description_fr": "Pour la tranquillit\u00e9 des animaux sauvages et domestiques.\\r\\n Les exceptions concernent les chiens de travail (chien d'avalanche, de conduite et de d\u00e9fense des troupeaux, chien d'aveugle) dans le cadre de leur activit\u00e9.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 2, + "model": "sensitivity.rule", + "fields": { + "code": "DOGS-LEASH", + "name": "Chiens autoris\u00e9s, tenus en laisse", + "name_en": "Dogs allowed on leash", + "pictogram": "upload/DOGS-LEASH_111.svg", + "url": "", + "description": "Pour la tranquillit\u00e9 de la faune sauvage et des troupeaux, la divagation des chiens est interdite.", + "description_en": "To ensure the tranquillity of wildlife and herds, dogs are not allowed to roam.", + "name_fr": "Chiens autoris\u00e9s, tenus en laisse", + "description_fr": "Pour la tranquillit\u00e9 de la faune sauvage et des troupeaux, la divagation des chiens est interdite.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 3, + "model": "sensitivity.rule", + "fields": { + "code": "NOISE-FORBIDDEN", + "name": "Ni bruit, ni d\u00e9rangement", + "name_en": "No noise, no disturbance", + "pictogram": "upload/NOISE-FORBIDDEN_012.svg", + "url": "", + "description": "Les bruits et d\u00e9rangements de nature \u00e0 troubler le calme et la tranquillit\u00e9 des lieux sont interdits.", + "description_en": "Noisiness and disruptions likely to disturb the calm and tranquillity of the place are forbidden.", + "name_fr": "Ni bruit, ni d\u00e9rangement", + "description_fr": "Les bruits et d\u00e9rangements de nature \u00e0 troubler le calme et la tranquillit\u00e9 des lieux sont interdits.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 4, + "model": "sensitivity.rule", + "fields": { + "code": "PICKING-FORBIDDEN", + "name": "Ni cueillette, ni pr\u00e9l\u00e8vement", + "name_en": "No picking, no taking", + "pictogram": "upload/PICKING-FORBIDDEN_021.svg", + "url": "", + "description": "Les pr\u00e9l\u00e8vements de min\u00e9raux, de fossiles, de v\u00e9g\u00e9taux ou d\u2019animaux sont interdits.", + "description_en": "Removing minerals, fossils, plants or animals is forbidden.", + "name_fr": "Ni cueillette, ni pr\u00e9l\u00e8vement", + "description_fr": "Les pr\u00e9l\u00e8vements de min\u00e9raux, de fossiles, de v\u00e9g\u00e9taux ou d\u2019animaux sont interdits.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 5, + "model": "sensitivity.rule", + "fields": { + "code": "CHASE-FORBIDDEN", + "name": "Chasse interdite", + "name_en": "Hunting forbidden", + "pictogram": "upload/CHASE-FORBIDDEN_022.svg", + "url": "", + "description": "La chasse, le port ou la d\u00e9tention d\u2019une arme utilisable pour la chasse et de ses munitions sont interdits.", + "description_en": "Hunting or carrying arms and ammunition, that can be used for hunting, is forbidden.", + "name_fr": "Chasse interdite", + "description_fr": "La chasse, le port ou la d\u00e9tention d\u2019une arme utilisable pour la chasse et de ses munitions sont interdits.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 6, + "model": "sensitivity.rule", + "fields": { + "code": "FISHING-FORBIDDEN", + "name": "P\u00eache interdite", + "name_en": "Fishing forbidden", + "pictogram": "upload/FISHING-FORBIDDEN_023.svg", + "url": "", + "description": "La p\u00eache est interdite", + "description_en": "Fishing is forbidden", + "name_fr": "P\u00eache interdite", + "description_fr": "La p\u00eache est interdite", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 7, + "model": "sensitivity.rule", + "fields": { + "code": "WASTE-FORBIDDEN", + "name": "D\u00e9chet interdit", + "name_en": "Forbidden waste", + "pictogram": "upload/WASTE-FORBIDDEN_031.svg", + "url": "", + "description": "Les d\u00e9p\u00f4ts, abandons ou jets de d\u00e9chets, quel que soit le lieu, sont interdits.", + "description_en": "Leaving rubbish behind, wherever it may be, is forbidden.", + "name_fr": "D\u00e9chet interdit", + "description_fr": "Les d\u00e9p\u00f4ts, abandons ou jets de d\u00e9chets, quel que soit le lieu, sont interdits.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 8, + "model": "sensitivity.rule", + "fields": { + "code": "FIRE-FORBIDDEN", + "name": "Feu interdit", + "name_en": "Fire forbidden", + "pictogram": "upload/FIRE-FORBIDDEN_033.svg", + "url": "", + "description": "Les feux sont interdits pour \u00e9viter incendies et d\u00e9gradations du sol.", + "description_en": "Fires are prohibited to prevent fires and soil damage.", + "name_fr": "Feu interdit", + "description_fr": "Les feux sont interdits pour \u00e9viter incendies et d\u00e9gradations du sol.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 9, + "model": "sensitivity.rule", + "fields": { + "code": "SMOKING-FORBIDDEN", + "name": "Interdit de fumer", + "name_en": "Smoking forbidden", + "pictogram": "upload/SMOKING-FORBIDDEN_034.svg", + "url": "", + "description": "Fumer (cigarette, chicha, etc.) est interdit", + "description_en": "Smoking (cigarettes, chicha, etc.) is forbidden", + "name_fr": "Interdit de fumer", + "description_fr": "Fumer (cigarette, chicha, etc.) est interdit", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 10, + "model": "sensitivity.rule", + "fields": { + "code": "CAMPING-FORBIDDEN", + "name": "Camping interdit", + "name_en": "Camping forbidden", + "pictogram": "upload/CAMPING-FORBIDDEN_041.svg", + "url": "", + "description": "Le camping est interdit pour pr\u00e9server la beaut\u00e9 des sites.", + "description_en": "Camping is forbidden to preserve the beauty of the sites.", + "name_fr": "Camping interdit", + "description_fr": "Le camping est interdit pour pr\u00e9server la beaut\u00e9 des sites.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 11, + "model": "sensitivity.rule", + "fields": { + "code": "BIVOUAC-REGULATED", + "name": "Bivouac r\u00e9glement\u00e9", + "name_en": "Regulated bivouac", + "pictogram": "upload/BIVOUAC-REGULATED_153.svg", + "url": "", + "description": "Le bivouac est autoris\u00e9 entre 19h et 9h.", + "description_en": "Bivouacs are authorized between 7pm and 9am.", + "name_fr": "Bivouac r\u00e9glement\u00e9", + "description_fr": "Le bivouac est autoris\u00e9 entre 19h et 9h.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 12, + "model": "sensitivity.rule", + "fields": { + "code": "BIVOUAC-FORBIDDEN", + "name": "Bivouac interdit", + "name_en": "Bivouac forbidden", + "pictogram": "upload/BIVOUAC-FORBIDDEN_042.svg", + "url": "", + "description": "Le bivouac est interdit.", + "description_en": "Bivouacs are forbidden.", + "name_fr": "Bivouac interdit", + "description_fr": "Le bivouac est interdit.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 13, + "model": "sensitivity.rule", + "fields": { + "code": "CAMPINGCARS-FORBIDDEN", + "name": "Camping-cars interdits", + "name_en": "Camping-cars forbidden", + "pictogram": "upload/CAMPINGCARS-FORBIDDEN_043.svg", + "url": "", + "description": "Le stationnement de camping-car est interdit.", + "description_en": "Camping-car parking is forbidden.", + "name_fr": "Camping-cars interdits", + "description_fr": "Le stationnement de camping-car est interdit.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 14, + "model": "sensitivity.rule", + "fields": { + "code": "CARAVANS-FORBIDDEN", + "name": "Caravanes interdites", + "name_en": "Caravans forbidden", + "pictogram": "upload/CARAVANS-FORBIDDEN_044.svg", + "url": "", + "description": "Le stationnement de caravane est interdit.", + "description_en": "Caravan parking is forbidden.", + "name_fr": "Caravanes interdites", + "description_fr": "Le stationnement de caravane est interdit.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 15, + "model": "sensitivity.rule", + "fields": { + "code": "CARS-FORBIDDEN", + "name": "V\u00e9hicules motoris\u00e9s interdits", + "name_en": "Motorized vehicles forbidden", + "pictogram": "upload/CARS-FORBIDDEN_051.svg", + "url": "", + "description": "La circulation et le stationnement des v\u00e9hicules motoris\u00e9s sont interdits.", + "description_en": "Motorized traffic and parking are forbidden.", + "name_fr": "V\u00e9hicules motoris\u00e9s interdits", + "description_fr": "La circulation et le stationnement des v\u00e9hicules motoris\u00e9s sont interdits.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 16, + "model": "sensitivity.rule", + "fields": { + "code": "MOTOS-FORBIDDEN", + "name": "Motos interdites", + "name_en": "Motorcycles forbidden", + "pictogram": "upload/MOTOS-FORBIDDEN_052.svg", + "url": "", + "description": "La circulation et le stationnement des motos sont interdits.", + "description_en": "Motorcycle traffic and parking are forbidden.", + "name_fr": "Motos interdites", + "description_fr": "La circulation et le stationnement des motos sont interdits.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 17, + "model": "sensitivity.rule", + "fields": { + "code": "BIKES-FORBIDDEN", + "name": "VTT interdit", + "name_en": "Mountain biking forbidden", + "pictogram": "upload/BIKES-FORBIDDEN_053.svg", + "url": "", + "description": "La circulation des VTT est interdite pour \u00e9viter le d\u00e9rangement ou la d\u00e9gradation des milieux.", + "description_en": "Mountain bikes are forbidden to avoid disturbing or damaging the environment.", + "name_fr": "VTT interdit", + "description_fr": "La circulation des VTT est interdite pour \u00e9viter le d\u00e9rangement ou la d\u00e9gradation des milieux.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 18, + "model": "sensitivity.rule", + "fields": { + "code": "ANCHOR-FORBIDDEN", + "name": "Mouillage interdit", + "name_en": "Anchoring forbidden", + "pictogram": "upload/ANCHOR-FORBIDDEN_054.svg", + "url": "", + "description": "Le mouillage des bateaux est interdit.", + "description_en": "Anchoring boats is forbidden.", + "name_fr": "Mouillage interdit", + "description_fr": "Le mouillage des bateaux est interdit.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 19, + "model": "sensitivity.rule", + "fields": { + "code": "HORSE-FORBIDDEN", + "name": "Activit\u00e9s \u00e9questres interdites", + "name_en": "Equestrian activities forbidden", + "pictogram": "upload/HORSE-FORBIDDEN_055.svg", + "url": "", + "description": "", + "description_en": "", + "name_fr": "Activit\u00e9s \u00e9questres interdites", + "description_fr": "", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 20, + "model": "sensitivity.rule", + "fields": { + "code": "HANGGLIDER-FORBIDDEN", + "name": "Deltaplane et autres sports a\u00e9riens interdits", + "name_en": "Hang-gliding and other air sports forbidden", + "pictogram": "upload/HANGGLIDER-FORBIDDEN_056.svg", + "url": "", + "description": "", + "description_en": "", + "name_fr": "Deltaplane et autres sports a\u00e9riens interdits", + "description_fr": "", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 21, + "model": "sensitivity.rule", + "fields": { + "code": "PARAGLIDING-FORBIDDEN", + "name": "Parapente et autres sports a\u00e9riens interdits", + "name_en": "Paragliding and other air sports forbidden", + "pictogram": "upload/PARAGLIDING-FORBIDDEN_057.svg", + "url": "", + "description": "", + "description_en": "", + "name_fr": "Parapente et autres sports a\u00e9riens interdits", + "description_fr": "", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 22, + "model": "sensitivity.rule", + "fields": { + "code": "OUTOFTRAIL-FORBIDDEN", + "name": "Ne pas sortir des sentiers", + "name_en": "Stay on the beaten path", + "pictogram": "upload/OUTOFTRAIL-FORBIDDEN_058.svg", + "url": "", + "description": "Rester sur les sentiers pour \u00e9viter les d\u00e9gradations et l\u2019\u00e9rosion du sol.", + "description_en": "Stay on the trails to avoid damage and soil erosion.", + "name_fr": "Ne pas sortir des sentiers", + "description_fr": "Rester sur les sentiers pour \u00e9viter les d\u00e9gradations et l\u2019\u00e9rosion du sol.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 23, + "model": "sensitivity.rule", + "fields": { + "code": "WASHINGCAR-FORBIDDEN", + "name": "Lavage de voiture interdit", + "name_en": "Car washing forbidden", + "pictogram": "upload/WASHINGCAR-FORBIDDEN_059.svg", + "url": "", + "description": "", + "description_en": "", + "name_fr": "Lavage de voiture interdit", + "description_fr": "", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 24, + "model": "sensitivity.rule", + "fields": { + "code": "PICKING-MINERALS-FORBIDDEN", + "name": "Pr\u00e9l\u00e8vement de min\u00e9raux interdit", + "name_en": "Mineral picking forbidden", + "pictogram": "upload/PICKING-MINERALS-FORBIDDEN_060.svg", + "url": "", + "description": "", + "description_en": "", + "name_fr": "Pr\u00e9l\u00e8vement de min\u00e9raux interdit", + "description_fr": "", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 25, + "model": "sensitivity.rule", + "fields": { + "code": "PICKING-FAUNA-FORBIDDEN", + "name": "Pr\u00e9l\u00e8vement d\u2019animaux interdit", + "name_en": "Animal picking forbidden", + "pictogram": "upload/PICKING-FAUNA-FORBIDDEN_061.svg", + "url": "", + "description": "", + "description_en": "", + "name_fr": "Pr\u00e9l\u00e8vement d\u2019animaux interdit", + "description_fr": "", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 26, + "model": "sensitivity.rule", + "fields": { + "code": "FISHING-TRAP-FORBIDDEN", + "name": "P\u00e8che \u00e0 la nasse interdite", + "name_en": "Net fishing forbidden", + "pictogram": "upload/FISHING-TRAP-FORBIDDEN_062.svg", + "url": "", + "description": "", + "description_en": "", + "name_fr": "P\u00e8che \u00e0 la nasse interdite", + "description_fr": "", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 27, + "model": "sensitivity.rule", + "fields": { + "code": "PICKING-FUNGI-FORBIDDEN", + "name": "Pr\u00e9l\u00e8vement de champignons interdit", + "name_en": "Mushroom picking forbdiden", + "pictogram": "upload/PICKING-FUNGI-FORBIDDEN_070.svg", + "url": "", + "description": "", + "description_en": "", + "name_fr": "Pr\u00e9l\u00e8vement de champignons interdit", + "description_fr": "", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 28, + "model": "sensitivity.rule", + "fields": { + "code": "DRONE-FORBIDDEN", + "name": "Drone interdit", + "name_en": "Drone forbidden", + "pictogram": "upload/DRONE-FORBIDDEN_074.svg", + "url": "", + "description": "Le survol des drones est interdit pour ne pas d\u00e9ranger la faune.", + "description_en": "Flying drones is prohibited to avoid disturbing wildlife.", + "name_fr": "Drone interdit", + "description_fr": "Le survol des drones est interdit pour ne pas d\u00e9ranger la faune.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 29, + "model": "sensitivity.rule", + "fields": { + "code": "PEDESTRIAN-FORBIDDEN", + "name": "Acc\u00e8s pi\u00e9ton interdit", + "name_en": "Pedestrian access forbidden", + "pictogram": "upload/PEDESTRIAN-FORBIDDEN_920.svg", + "url": "", + "description": "La circulation est interdite pour pr\u00e9server les milieux et garantir la protection de ses esp\u00e8ces.", + "description_en": "Traffic is forbidden to preserve the environment and guarantee the protection of these species.", + "name_fr": "Acc\u00e8s pi\u00e9ton interdit", + "description_fr": "La circulation est interdite pour pr\u00e9server les milieux et garantir la protection de ses esp\u00e8ces.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 30, + "model": "sensitivity.rule", + "fields": { + "code": "PEDESTRIAN-REGULATED", + "name": "Acc\u00e8s pi\u00e9ton r\u00e9glement\u00e9", + "name_en": "Regulated pedestrian access", + "pictogram": "upload/PEDESTRIAN-REGULATED_922.svg", + "url": "", + "description": "L\u2019acc\u00e8s est r\u00e9glement\u00e9 pour pr\u00e9server les milieux et garantir la protection de ses esp\u00e8ces.", + "description_en": "Access is regulated to preserve the environment and guarantee the protection of its species.", + "name_fr": "Acc\u00e8s pi\u00e9ton r\u00e9glement\u00e9", + "description_fr": "L\u2019acc\u00e8s est r\u00e9glement\u00e9 pour pr\u00e9server les milieux et garantir la protection de ses esp\u00e8ces.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 31, + "model": "sensitivity.rule", + "fields": { + "code": "CANYON-REGULATED", + "name": "Canyoning r\u00e9glement\u00e9", + "name_en": "Regulated canyoning", + "pictogram": "upload/CANYON-REGULATED_902.svg", + "url": "", + "description": "Le canyoning est r\u00e9glement\u00e9 pour pr\u00e9server les milieux aquatiques du pi\u00e9tinement et la tranquillit\u00e9 piscicole.", + "description_en": "Canyoning is regulated to protect aquatic environments from trampling and to preserve the tranquillity of fish populations.", + "name_fr": "Canyoning r\u00e9glement\u00e9", + "description_fr": "Le canyoning est r\u00e9glement\u00e9 pour pr\u00e9server les milieux aquatiques du pi\u00e9tinement et la tranquillit\u00e9 piscicole.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 32, + "model": "sensitivity.rule", + "fields": { + "code": "CANYON-FORBIDDEN", + "name": "Canyoning interdit", + "name_en": "Canyoning forbidden", + "pictogram": "upload/CANYON-FORBIDDEN_900.svg", + "url": "", + "description": "Le canyoning est interdit pour pr\u00e9server les milieux aquatiques du pi\u00e9tinement et la tranquillit\u00e9 piscicole.", + "description_en": "Canyoning is forbidden to protect aquatic environments from trampling and to preserve the tranquillity of fish populations.", + "name_fr": "Canyoning interdit", + "description_fr": "Le canyoning est interdit pour pr\u00e9server les milieux aquatiques du pi\u00e9tinement et la tranquillit\u00e9 piscicole.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 33, + "model": "sensitivity.rule", + "fields": { + "code": "SWIMMING-FORBIDDEN", + "name": "Baignade interdite", + "name_en": "Bathing forbidden", + "pictogram": "upload/SWIMMING-FORBIDDEN_068.svg", + "url": "", + "description": "", + "description_en": "", + "name_fr": "Baignade interdite", + "description_fr": "", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 34, + "model": "sensitivity.rule", + "fields": { + "code": "PARKING-FORBIDDEN", + "name": "Stationnement interdit", + "name_en": "Parking forbidden", + "pictogram": "upload/PARKING-FORBIDDEN_910.svg", + "url": "", + "description": "", + "description_en": "", + "name_fr": "Stationnement interdit", + "description_fr": "", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + }, + { + "pk": 35, + "model": "sensitivity.rule", + "fields": { + "code": "FEEDINGWILDLIFE-FORBIDDEN", + "name": "Interdit de nourrir la faune sauvage", + "name_en": "Feeding wildlife forbidden", + "pictogram": "upload/FEEDINGWILDLIFE-FORBIDDEN_036.svg", + "url": "", + "description": "Les animaux sauvages ne doivent pas \u00eatre nourris.", + "description_en": "Wild animals must not be fed.", + "name_fr": "Interdit de nourrir la faune sauvage", + "description_fr": "Les animaux sauvages ne doivent pas \u00eatre nourris.", + "date_update": "2014-02-12T11:21:48.961Z", + "date_insert": "2014-02-12T11:21:48.961Z" + } + } +] \ No newline at end of file diff --git a/geotrek/sensitivity/fixtures/upload/ANCHOR-FORBIDDEN_054.svg b/geotrek/sensitivity/fixtures/upload/ANCHOR-FORBIDDEN_054.svg new file mode 100644 index 0000000000..2c021e691b --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/ANCHOR-FORBIDDEN_054.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/BIKES-FORBIDDEN_053.svg b/geotrek/sensitivity/fixtures/upload/BIKES-FORBIDDEN_053.svg new file mode 100644 index 0000000000..e240c1536e --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/BIKES-FORBIDDEN_053.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/BIVOUAC-FORBIDDEN_042.svg b/geotrek/sensitivity/fixtures/upload/BIVOUAC-FORBIDDEN_042.svg new file mode 100644 index 0000000000..6c82bc1977 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/BIVOUAC-FORBIDDEN_042.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/BIVOUAC-REGULATED_153.svg b/geotrek/sensitivity/fixtures/upload/BIVOUAC-REGULATED_153.svg new file mode 100644 index 0000000000..80c4b79bae --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/BIVOUAC-REGULATED_153.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/CAMPING-FORBIDDEN_041.svg b/geotrek/sensitivity/fixtures/upload/CAMPING-FORBIDDEN_041.svg new file mode 100644 index 0000000000..f4ddacaf5c --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/CAMPING-FORBIDDEN_041.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/CAMPINGCAR-FORBIDDEN_043.svg b/geotrek/sensitivity/fixtures/upload/CAMPINGCAR-FORBIDDEN_043.svg new file mode 100644 index 0000000000..f85818d58a --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/CAMPINGCAR-FORBIDDEN_043.svg @@ -0,0 +1,105 @@ + + + +image/svg+xml + + + + + + + + + + \ No newline at end of file diff --git a/geotrek/sensitivity/fixtures/upload/CAMPINGCARS-FORBIDDEN_043.svg b/geotrek/sensitivity/fixtures/upload/CAMPINGCARS-FORBIDDEN_043.svg new file mode 100644 index 0000000000..c8432a5a5a --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/CAMPINGCARS-FORBIDDEN_043.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/CANYON-FORBIDDEN_900.svg b/geotrek/sensitivity/fixtures/upload/CANYON-FORBIDDEN_900.svg new file mode 100644 index 0000000000..d8d55a4ed2 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/CANYON-FORBIDDEN_900.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/CANYON-REGULATED_902.svg b/geotrek/sensitivity/fixtures/upload/CANYON-REGULATED_902.svg new file mode 100644 index 0000000000..d4fcb29348 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/CANYON-REGULATED_902.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/CAR-FORBIDDEN_051.svg b/geotrek/sensitivity/fixtures/upload/CAR-FORBIDDEN_051.svg new file mode 100644 index 0000000000..ebfe90d814 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/CAR-FORBIDDEN_051.svg @@ -0,0 +1,81 @@ + + + +image/svg+xml + + + + + + \ No newline at end of file diff --git a/geotrek/sensitivity/fixtures/upload/CARAVAN-FORBIDDEN_044.svg b/geotrek/sensitivity/fixtures/upload/CARAVAN-FORBIDDEN_044.svg new file mode 100644 index 0000000000..d4eaff3121 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/CARAVAN-FORBIDDEN_044.svg @@ -0,0 +1,93 @@ + + + +image/svg+xml + + + + + + + + \ No newline at end of file diff --git a/geotrek/sensitivity/fixtures/upload/CARAVANS-FORBIDDEN_044.svg b/geotrek/sensitivity/fixtures/upload/CARAVANS-FORBIDDEN_044.svg new file mode 100644 index 0000000000..97e5270f65 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/CARAVANS-FORBIDDEN_044.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/CARS-FORBIDDEN_051.svg b/geotrek/sensitivity/fixtures/upload/CARS-FORBIDDEN_051.svg new file mode 100644 index 0000000000..5cbcf8f157 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/CARS-FORBIDDEN_051.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/CHASE-FORBIDDEN_022.svg b/geotrek/sensitivity/fixtures/upload/CHASE-FORBIDDEN_022.svg new file mode 100644 index 0000000000..ae1b614b88 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/CHASE-FORBIDDEN_022.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/DOG-LEASH_111.svg b/geotrek/sensitivity/fixtures/upload/DOG-LEASH_111.svg new file mode 100644 index 0000000000..bdf3d22fa3 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/DOG-LEASH_111.svg @@ -0,0 +1,80 @@ + + + +image/svg+xml + + + + + + + + \ No newline at end of file diff --git a/geotrek/sensitivity/fixtures/upload/DOGS-FORBIDDEN_011.svg b/geotrek/sensitivity/fixtures/upload/DOGS-FORBIDDEN_011.svg new file mode 100644 index 0000000000..7491a67ee6 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/DOGS-FORBIDDEN_011.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/DOGS-LEASH_111.svg b/geotrek/sensitivity/fixtures/upload/DOGS-LEASH_111.svg new file mode 100644 index 0000000000..af7f817275 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/DOGS-LEASH_111.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/DRONE-FORBIDDEN_074.svg b/geotrek/sensitivity/fixtures/upload/DRONE-FORBIDDEN_074.svg new file mode 100644 index 0000000000..5cc96fe15e --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/DRONE-FORBIDDEN_074.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/FEEDINGWILDLIFE-FORBIDDEN_036.svg b/geotrek/sensitivity/fixtures/upload/FEEDINGWILDLIFE-FORBIDDEN_036.svg new file mode 100644 index 0000000000..41d85a5720 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/FEEDINGWILDLIFE-FORBIDDEN_036.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/FIRE-FORBIDDEN_033.svg b/geotrek/sensitivity/fixtures/upload/FIRE-FORBIDDEN_033.svg new file mode 100644 index 0000000000..3ec7253492 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/FIRE-FORBIDDEN_033.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/FISHING-FORBIDDEN_023.svg b/geotrek/sensitivity/fixtures/upload/FISHING-FORBIDDEN_023.svg new file mode 100644 index 0000000000..bef685ad14 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/FISHING-FORBIDDEN_023.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/FISHING-TRAP-FORBIDDEN_062.svg b/geotrek/sensitivity/fixtures/upload/FISHING-TRAP-FORBIDDEN_062.svg new file mode 100644 index 0000000000..458560f35d --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/FISHING-TRAP-FORBIDDEN_062.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/HANGGLIDER-FORBIDDEN_056.svg b/geotrek/sensitivity/fixtures/upload/HANGGLIDER-FORBIDDEN_056.svg new file mode 100644 index 0000000000..84a46f28a2 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/HANGGLIDER-FORBIDDEN_056.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/HORSE-FORBIDDEN_055.svg b/geotrek/sensitivity/fixtures/upload/HORSE-FORBIDDEN_055.svg new file mode 100644 index 0000000000..d0955d7e75 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/HORSE-FORBIDDEN_055.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/MOTO-FORBIDDEN_052.svg b/geotrek/sensitivity/fixtures/upload/MOTO-FORBIDDEN_052.svg new file mode 100644 index 0000000000..dc2032dfa6 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/MOTO-FORBIDDEN_052.svg @@ -0,0 +1,91 @@ + + + +image/svg+xml + + + + + + + + + \ No newline at end of file diff --git a/geotrek/sensitivity/fixtures/upload/MOTOS-FORBIDDEN_052.svg b/geotrek/sensitivity/fixtures/upload/MOTOS-FORBIDDEN_052.svg new file mode 100644 index 0000000000..fdc3dfc15c --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/MOTOS-FORBIDDEN_052.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/NOISE-FORBIDDEN_012.svg b/geotrek/sensitivity/fixtures/upload/NOISE-FORBIDDEN_012.svg new file mode 100644 index 0000000000..c9522964a2 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/NOISE-FORBIDDEN_012.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/OUTOFTRAIL-FORBIDDEN_058.svg b/geotrek/sensitivity/fixtures/upload/OUTOFTRAIL-FORBIDDEN_058.svg new file mode 100644 index 0000000000..21a5fcd73f --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/OUTOFTRAIL-FORBIDDEN_058.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/PARAGLIDING-FORBIDDEN_057.svg b/geotrek/sensitivity/fixtures/upload/PARAGLIDING-FORBIDDEN_057.svg new file mode 100644 index 0000000000..fa29e3d800 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/PARAGLIDING-FORBIDDEN_057.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/PARKING-FORBIDDEN_910.svg b/geotrek/sensitivity/fixtures/upload/PARKING-FORBIDDEN_910.svg new file mode 100644 index 0000000000..cd4dd23629 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/PARKING-FORBIDDEN_910.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/PEDESTRIAN-FORBIDDEN_920.svg b/geotrek/sensitivity/fixtures/upload/PEDESTRIAN-FORBIDDEN_920.svg new file mode 100644 index 0000000000..5b62c383dc --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/PEDESTRIAN-FORBIDDEN_920.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/PEDESTRIAN-REGULATED_922.svg b/geotrek/sensitivity/fixtures/upload/PEDESTRIAN-REGULATED_922.svg new file mode 100644 index 0000000000..ba4a4ba23d --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/PEDESTRIAN-REGULATED_922.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/PICKING-FAUNA-FORBIDDEN_061.svg b/geotrek/sensitivity/fixtures/upload/PICKING-FAUNA-FORBIDDEN_061.svg new file mode 100644 index 0000000000..ab8fa6b7ea --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/PICKING-FAUNA-FORBIDDEN_061.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/PICKING-FORBIDDEN_021.svg b/geotrek/sensitivity/fixtures/upload/PICKING-FORBIDDEN_021.svg new file mode 100644 index 0000000000..c3c57808f9 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/PICKING-FORBIDDEN_021.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/PICKING-FUNGI-FORBIDDEN_070.svg b/geotrek/sensitivity/fixtures/upload/PICKING-FUNGI-FORBIDDEN_070.svg new file mode 100644 index 0000000000..4a397d5db7 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/PICKING-FUNGI-FORBIDDEN_070.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/PICKING-MINERALS-FORBIDDEN_060.svg b/geotrek/sensitivity/fixtures/upload/PICKING-MINERALS-FORBIDDEN_060.svg new file mode 100644 index 0000000000..21e9e104f6 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/PICKING-MINERALS-FORBIDDEN_060.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/SMOKING-FORBIDDEN_034.svg b/geotrek/sensitivity/fixtures/upload/SMOKING-FORBIDDEN_034.svg new file mode 100644 index 0000000000..08348c00d8 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/SMOKING-FORBIDDEN_034.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/SWIMMING-FORBIDDEN_068.svg b/geotrek/sensitivity/fixtures/upload/SWIMMING-FORBIDDEN_068.svg new file mode 100644 index 0000000000..8ff6393bdc --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/SWIMMING-FORBIDDEN_068.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/WASHINGCAR-FORBIDDEN_059.svg b/geotrek/sensitivity/fixtures/upload/WASHINGCAR-FORBIDDEN_059.svg new file mode 100644 index 0000000000..d1b8afc617 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/WASHINGCAR-FORBIDDEN_059.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/fixtures/upload/WASTE-FORBIDDEN_031.svg b/geotrek/sensitivity/fixtures/upload/WASTE-FORBIDDEN_031.svg new file mode 100644 index 0000000000..a8e7f7a4c1 --- /dev/null +++ b/geotrek/sensitivity/fixtures/upload/WASTE-FORBIDDEN_031.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/geotrek/sensitivity/templates/sensitivity/sql/post_90_defaults.sql b/geotrek/sensitivity/templates/sensitivity/sql/post_90_defaults.sql index 77273121c0..51eb932ac4 100644 --- a/geotrek/sensitivity/templates/sensitivity/sql/post_90_defaults.sql +++ b/geotrek/sensitivity/templates/sensitivity/sql/post_90_defaults.sql @@ -42,3 +42,7 @@ ALTER TABLE maintenance_project ALTER COLUMN date_insert SET DEFAULT now(); ALTER TABLE maintenance_project ALTER COLUMN date_update SET DEFAULT now(); ALTER TABLE sensitivity_sensitivearea ALTER COLUMN provider SET DEFAULT ''; -- deleted + +-- rules +ALTER TABLE sensitivity_rule ALTER COLUMN date_insert SET DEFAULT now(); +ALTER TABLE sensitivity_rule ALTER COLUMN date_update SET DEFAULT now();