diff --git a/INSTALL.rst b/INSTALL.rst index b4a871f8c6..1b84b2d2ad 100644 --- a/INSTALL.rst +++ b/INSTALL.rst @@ -425,11 +425,18 @@ After configuring the application groups in the admin through point-and-click, y call this script to dump the configuration into a fixture which will be loaded on all other installations. -``bin/generate_default_groups_fixtures.sh`` -------------------------------------------- +``bin/generate_default_groups_fixture.sh`` +------------------------------------------ After configuring the user groups with the appropriate permissions in the admin, -you can this script to dump the configuration into a fixture which will be loaded on +you call this script to dump the configuration into a fixture which will be loaded on +all other installations. + +``bin/generate_default_leaflet_map_backgrounds_fixture.sh`` +----------------------------------------------------------- + +After configuring the leaflet map backgrounds in the admin, +you call this script to dump the configuration into a fixture which will be loaded on all other installations. ``bin/generate_oas.sh`` diff --git a/bin/generate_default_leaflet_map_backgrounds_fixture.sh b/bin/generate_default_leaflet_map_backgrounds_fixture.sh new file mode 100755 index 0000000000..a96b746b97 --- /dev/null +++ b/bin/generate_default_leaflet_map_backgrounds_fixture.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# +# Dump the current (local database) config LeafletMapBackground to a JSON fixture. +# This overwrites the existing one. +# +# You can load this fixture with: +# $ src/manage.py loaddata default_leaflet_map_backgrounds +# +# Run this script from the root of the repository + +src/manage.py dumpdata --indent=4 --natural-foreign --natural-primary config.LeafletMapBackground > src/openforms/fixtures/default_leaflet_map_backgrounds.json diff --git a/src/openforms/fixtures/default_leaflet_map_backgrounds.json b/src/openforms/fixtures/default_leaflet_map_backgrounds.json new file mode 100644 index 0000000000..dc117ae25d --- /dev/null +++ b/src/openforms/fixtures/default_leaflet_map_backgrounds.json @@ -0,0 +1,20 @@ +[ +{ + "model": "config.leafletmapbackground", + "pk": 1, + "fields": { + "identifier": "brt", + "url": "https://service.pdok.nl/brt/achtergrondkaart/wmts/v2_0/standaard/EPSG:28992/{z}/{x}/{y}.png", + "label": "BRT" + } +}, +{ + "model": "config.leafletmapbackground", + "pk": 2, + "fields": { + "identifier": "luchtfoto", + "url": "https://service.pdok.nl/hwh/luchtfotorgb/wmts/v1_0/Actueel_orthoHR/EPSG:28992/{z}/{x}/{y}.png", + "label": "Luchtfoto" + } +} +]