diff --git a/backend/right_tree/api/data/fixtures/habitats.json b/backend/right_tree/api/data/fixtures/habitats.json index a7aa50b..fc27270 100644 --- a/backend/right_tree/api/data/fixtures/habitats.json +++ b/backend/right_tree/api/data/fixtures/habitats.json @@ -2,29 +2,29 @@ { "model": "api.habitat", "pk": 1, - "fields": { - "name": "RURAL" - } - }, - { - "model": "api.habitat", - "pk": 2, "fields": { "name": "URBAN" } }, + { + "model": "api.habitat", + "pk": 2, + "fields": { + "name": "RIPARIAN" + } + }, { "model": "api.habitat", "pk": 3, "fields": { - "name": "SALT MARSH/TIDAL LAGOONS & COASTAL BANKS" + "name": "STORMWATER TREATMENT TRAIN" } }, { "model": "api.habitat", "pk": 4, "fields": { - "name": "TRANSPORT CORRIDORS" + "name": "OPEN WETLAND/LAKE" } }, { @@ -38,35 +38,35 @@ "model": "api.habitat", "pk": 6, "fields": { - "name": "RIPARIAN" + "name": "DUNE SYSTEM" } }, { "model": "api.habitat", "pk": 7, "fields": { - "name": "MATAURANGA MAORI" + "name": "SALT MARSH/TIDAL LAGOONS & COASTAL BANKS" } }, { "model": "api.habitat", "pk": 8, "fields": { - "name": "OPEN WETLAND/LAKE" + "name": "MATAURANGA MAORI" } }, { "model": "api.habitat", "pk": 9, "fields": { - "name": "STORMWATER TREATMENT TRAIN" + "name": "TRANSPORT CORRIDORS" } }, { "model": "api.habitat", "pk": 10, "fields": { - "name": "DUNE SYSTEM" + "name": "RURAL" } } ] \ No newline at end of file diff --git a/backend/right_tree/api/data/fixtures/zones.json b/backend/right_tree/api/data/fixtures/zones.json index 45900bf..3fa4f08 100644 --- a/backend/right_tree/api/data/fixtures/zones.json +++ b/backend/right_tree/api/data/fixtures/zones.json @@ -3,8 +3,8 @@ "model": "api.zone", "pk": 1, "fields": { - "name": "RETENTION POND", - "variant": "Emergent", + "name": "PERMANENT RIVER/STREAM", + "variant": "Fresh Plain", "refined_variant": null, "redirect_habitat": null } @@ -13,8 +13,8 @@ "model": "api.zone", "pk": 2, "fields": { - "name": "DETENTION BASIN", - "variant": "Dry Bed", + "name": "VINEYARD", + "variant": "Ground Cover", "refined_variant": null, "redirect_habitat": null } @@ -22,116 +22,6 @@ { "model": "api.zone", "pk": 3, - "fields": { - "name": "HILL ELEMENTS", - "variant": "Upper Slope", - "refined_variant": "Shady", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 4, - "fields": { - "name": "PERMANENT RIVER/STREAM", - "variant": "Lower Scarp", - "refined_variant": "Shady", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 5, - "fields": { - "name": "HERBACEOUS ", - "variant": "Border", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 6, - "fields": { - "name": "ROAD VERGE/TRAFFIC ISLAND", - "variant": "Frangible Edge", - "refined_variant": "High Mow", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 7, - "fields": { - "name": "HILL ELEMENTS", - "variant": "Upper Slope", - "refined_variant": "Sunny", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 8, - "fields": { - "name": "PERMANENT RIVER/STREAM", - "variant": "Emergent", - "refined_variant": "Floodplain", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 9, - "fields": { - "name": "SPRAY ZONE", - "variant": "Coastal", - "refined_variant": "Bush Edge", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 10, - "fields": { - "name": "SAND", - "variant": "1ST BACK DUNE STABLE", - "refined_variant": "Front & Crest", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 11, - "fields": { - "name": "PERMANENT RIVER/STREAM", - "variant": "Lower Scarp", - "refined_variant": "Sunny", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 12, - "fields": { - "name": "LIVING WALL", - "variant": "Sunny", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 13, - "fields": { - "name": "Country/Valley", - "variant": "Plains/", - "refined_variant": "Rolling", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 14, "fields": { "name": "BUSH PROFILE POSITION", "variant": "Epiphytes", @@ -141,977 +31,7 @@ }, { "model": "api.zone", - "pk": 15, - "fields": { - "name": "LIVING SCREEN", - "variant": "Pergola", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 16, - "fields": { - "name": "Streams/Ponds", - "variant": "See Riparian/Wetlands/Lakes", - "refined_variant": "sheltered", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 17, - "fields": { - "name": "ROAD VERGE/TRAFFIC ISLAND", - "variant": "Sight line", - "refined_variant": "High Mow", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 18, - "fields": { - "name": "RAIL", - "variant": "Outer Rail", - "refined_variant": "Back Bush", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 19, - "fields": { - "name": "Open Wetland/Lake", - "variant": "Swamp", - "refined_variant": "Aquatic submerged", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 20, - "fields": { - "name": "HIGH TIDE", - "variant": "Upper Marsh", - "refined_variant": "Mangrove", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 21, - "fields": { - "name": "Country/Valley", - "variant": "Outcrop", - "refined_variant": "Centre/Wet", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 22, - "fields": { - "name": "HILL ELEMENTS", - "variant": "Toeslope", - "refined_variant": "Shady", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 23, - "fields": { - "name": "PERMANENT RIVER/STREAM", - "variant": "Aquatic Bed", - "refined_variant": "Floodplain", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 24, - "fields": { - "name": "RETENTION POND", - "variant": "Aquatic", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 25, - "fields": { - "name": "SAND", - "variant": "2ND BACK DUNE STABLE", - "refined_variant": "Front & Crest", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 26, - "fields": { - "name": "Matauranga Maori", - "variant": "Taonga/Taoka", - "refined_variant": "Domestic", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 27, - "fields": { - "name": "Open Wetland/Lake", - "variant": "Bog", - "refined_variant": "reeds/shrubs", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 28, - "fields": { - "name": "RAIL", - "variant": "Inner Rail", - "refined_variant": "LF Shrubbery", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 29, - "fields": { - "name": "SHELTERBELT", - "variant": "1-2 Row", - "refined_variant": "See Standard Bush Restoration for Locality with emphasis on skin and border", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 30, - "fields": { - "name": "GREEN ROOF", - "variant": "Sunny", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 31, - "fields": { - "name": "PERMANENT RIVER/STREAM", - "variant": "Backswamp", - "refined_variant": "Floodplain", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 32, - "fields": { - "name": "HEDGE", - "variant": "Moist", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 33, - "fields": { - "name": "EPHEMERAL", - "variant": "Upper Bank", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 34, - "fields": { - "name": "ROOF GARDEN", - "variant": "Any herb or shrub from region", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 35, - "fields": { - "name": "PERMANENT RIVER/STREAM", - "variant": "Upper Scarp", - "refined_variant": "Sunny", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 36, - "fields": { - "name": "SAND", - "variant": "1ST BACK DUNE STABLE", - "refined_variant": "Salt turf", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 37, - "fields": { - "name": "LOW TIDE", - "variant": "Mud Flats", - "refined_variant": "Eel Grass", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 38, - "fields": { - "name": "HILL ELEMENTS", - "variant": "Toeslope", - "refined_variant": "Sunny", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 39, - "fields": { - "name": "SPRAY ZONE", - "variant": "Exposed", - "refined_variant": "Cliffs", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 40, - "fields": { - "name": "Matauranga Maori", - "variant": "Fibre/Wood", - "refined_variant": "Domestic", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 41, - "fields": { - "name": "Country/Valley", - "variant": "Slip", - "refined_variant": "Edge", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 42, - "fields": { - "name": "SAND", - "variant": "1ST BACK DUNE STABLE", - "refined_variant": "Back", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 43, - "fields": { - "name": "ROAD VERGE/TRAFFIC ISLAND", - "variant": "Cut/Fill", - "refined_variant": "foot/toe", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 44, - "fields": { - "name": "SWALE", - "variant": "Road Edge", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 45, - "fields": { - "name": "BUSH PROFILE POSITION", - "variant": "Skin", - "refined_variant": "outer 1-2 rows", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 46, - "fields": { - "name": "VINEYARD", - "variant": "Ground Cover", - "refined_variant": "Centre", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 47, - "fields": { - "name": "BUSH PROFILE POSITION", - "variant": "Core", - "refined_variant": "inner", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 48, - "fields": { - "name": "WALL CREVICES", - "variant": "Shady", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 49, - "fields": { - "name": "ROAD VERGE/TRAFFIC ISLAND", - "variant": "Mid", - "refined_variant": "High Mow", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 50, - "fields": { - "name": "LAWN", - "variant": "Moist", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 51, - "fields": { - "name": "LOW TIDE", - "variant": "Lagoon", - "refined_variant": "Reeds", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 52, - "fields": { - "name": "SAND", - "variant": "2ND BACK DUNE STABLE", - "refined_variant": "Back", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 53, - "fields": { - "name": "Open Wetland/Lake", - "variant": "Swamp", - "refined_variant": "Fluctuating Tussock", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 54, - "fields": { - "name": "SAND", - "variant": "1ST BACK DUNE STABLE", - "refined_variant": "Interdune Ephemeral Wetland", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 55, - "fields": { - "name": "Open Wetland/Lake", - "variant": "Grazing Marsh", - "refined_variant": "reeds/shrubs", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 56, - "fields": { - "name": "COURTYARD", - "variant": "Protected", - "refined_variant": "sheltered", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 57, - "fields": { - "name": "STREET/SPECIMEN", - "variant": "Trees", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 58, - "fields": { - "name": "SAND", - "variant": "FOREDUNE", - "refined_variant": "Crest", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 59, - "fields": { - "name": "Country/Valley", - "variant": "Montane", - "refined_variant": "Centre/Wet", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 60, - "fields": { - "name": "HIGH TIDE", - "variant": "Upper Marsh", - "refined_variant": "Reeds", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 61, - "fields": { - "name": "PERMANENT RIVER/STREAM", - "variant": "Terrace Top", - "refined_variant": "See Standard Restoration for Locality", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 62, - "fields": { - "name": "INFORMATION", - "variant": "C-Sequester Algorithm", - "refined_variant": "suitable for sustainable harvest", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 63, - "fields": { - "name": "HIGH TIDE", - "variant": "Highest Marsh", - "refined_variant": "Scrub", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 64, - "fields": { - "name": "PERMANENT RIVER/STREAM", - "variant": "Upper Scarp", - "refined_variant": "Shady", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 65, - "fields": { - "name": "Bush Garden", - "variant": "See Standard Restoration for Locality", - "refined_variant": "sheltered", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 66, - "fields": { - "name": "RETENTION POND", - "variant": "Wet Margin", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 67, - "fields": { - "name": "PIVOT IRRIGATOR", - "variant": "Corner & Other Bush", - "refined_variant": "See Standard Bush Restoration for Locality with emphasis on skin and border", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 68, - "fields": { - "name": "RAIN GARDEN", - "variant": "CIPTED Bed", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 69, - "fields": { - "name": "PERMANENT RIVER/STREAM", - "variant": "Fresh Plain", - "refined_variant": "Floodplain", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 70, - "fields": { - "name": "RAIL", - "variant": "Trackside", - "refined_variant": "High Mow", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 71, - "fields": { - "name": "RETENTION POND", - "variant": "Wet Floodplain", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 72, - "fields": { - "name": "SAND", - "variant": "FOREDUNE", - "refined_variant": "Toe", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 73, - "fields": { - "name": "GRAVEL/CRACKS", - "variant": "Permeable Paving", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 74, - "fields": { - "name": "PERMANENT RIVER/STREAM", - "variant": "Upper Bank", - "refined_variant": "Floodplain", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 75, - "fields": { - "name": "SHELTERBELT", - "variant": "3-5 Row", - "refined_variant": "Centre", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 76, - "fields": { - "name": "Hedgerow", - "variant": "< 2m", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 77, - "fields": { - "name": "ROAD VERGE/TRAFFIC ISLAND", - "variant": "Cut/Fill", - "refined_variant": "mid slope", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 78, - "fields": { - "name": "EPHEMERAL", - "variant": "Bed", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 79, - "fields": { - "name": "Matauranga Maori", - "variant": "Rongoa/Med", - "refined_variant": "Domestic", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 80, - "fields": { - "name": "SWALE", - "variant": "Dry Bed", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 81, - "fields": { - "name": "PIVOT IRRIGATOR", - "variant": "Under Pivot Arm", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 82, - "fields": { - "name": "ROAD VERGE/TRAFFIC ISLAND", - "variant": "Cut/Fill", - "refined_variant": "crest", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 83, - "fields": { - "name": "SWALE", - "variant": "Veg Edge", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 84, - "fields": { - "name": "LOW TIDE", - "variant": "Lower Marsh", - "refined_variant": "Mangrove", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 85, - "fields": { - "name": "SAND", - "variant": "FOREDUNE", - "refined_variant": "Sand Plain", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 86, - "fields": { - "name": "Open Wetland/Lake", - "variant": "Swamp", - "refined_variant": "Aquatic floating", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 87, - "fields": { - "name": "INFORMATION", - "variant": "Billion Trees", - "refined_variant": "suitable for sustainable harvest", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 88, - "fields": { - "name": "VINEYARD", - "variant": "Vines", - "refined_variant": "Centre", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 89, - "fields": { - "name": "Homestead", - "variant": "see URBAN", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 90, - "fields": { - "name": "HILL ELEMENTS", - "variant": "Midslope", - "refined_variant": "Sunny", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 91, - "fields": { - "name": "ROAD VERGE/TRAFFIC ISLAND", - "variant": "Mown Edge", - "refined_variant": "High Mow", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 92, - "fields": { - "name": "EPHEMERAL", - "variant": "Lower Bank", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 93, - "fields": { - "name": "RAIN GARDEN", - "variant": "Road Edge", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 94, - "fields": { - "name": "SPRAY ZONE", - "variant": "Coastal", - "refined_variant": "Bush Centre", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 95, - "fields": { - "name": "LIVING WALL", - "variant": "Shady/Indoors", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 96, - "fields": { - "name": "SHRUBBERY", - "variant": "Shrubs", - "refined_variant": "Shrubbery", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 97, - "fields": { - "name": "RAIN GARDEN", - "variant": "Bed", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 98, - "fields": { - "name": "HILL ELEMENTS", - "variant": "Footslope", - "refined_variant": "Shady", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 99, - "fields": { - "name": "Open Wetland/Lake", - "variant": "Fen", - "refined_variant": "reeds/shrubs", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 100, - "fields": { - "name": "ROCK GARDEN", - "variant": "Shady", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 101, - "fields": { - "name": "HILL ELEMENTS", - "variant": "Footslope", - "refined_variant": "Sunny", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 102, - "fields": { - "name": "Country/Valley", - "variant": "Moraine", - "refined_variant": "Centre/Wet", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 103, - "fields": { - "name": "RAIL", - "variant": "Inner Rail", - "refined_variant": "High Mow", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 104, - "fields": { - "name": "GRAVEL/BOULDER BEACH", - "variant": "Crest & Back", - "refined_variant": "Ridge", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 105, - "fields": { - "name": "SAND", - "variant": "FOREDUNE", - "refined_variant": "Back", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 106, - "fields": { - "name": "Open Wetland/Lake", - "variant": "Swamp", - "refined_variant": "Fluctuating turf", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 107, - "fields": { - "name": "Matauranga Maori", - "variant": "Kai/Food", - "refined_variant": "Domestic", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 108, - "fields": { - "name": "WALL CREVICES", - "variant": "Sunny", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 109, - "fields": { - "name": "HILL ELEMENTS", - "variant": "Crest", - "refined_variant": "+ on logs", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 110, - "fields": { - "name": "PERMANENT RIVER/STREAM", - "variant": "Scarp Footslope", - "refined_variant": "toe", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 111, - "fields": { - "name": "Country/Valley", - "variant": "Slip", - "refined_variant": "Centre/Wet", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 112, + "pk": 4, "fields": { "name": "Streams/Rivers", "variant": "see RIPARIAN/WETLANDS/PONDS", @@ -1121,97 +41,237 @@ }, { "model": "api.zone", - "pk": 113, + "pk": 5, + "fields": { + "name": "ROOF GARDEN", + "variant": "Any herb or shrub from region", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 6, + "fields": { + "name": "EPHEMERAL", + "variant": "Upper Bank", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 7, + "fields": { + "name": "SHELTERBELT", + "variant": "1-2 Row", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 8, + "fields": { + "name": "PERMANENT RIVER/STREAM", + "variant": "Upper Scarp", + "refined_variant": "Sunny", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 9, + "fields": { + "name": "Open Wetland/Lake", + "variant": "Swamp", + "refined_variant": "Aquatic submerged", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 10, + "fields": { + "name": "SAND", + "variant": "2ND BACK DUNE STABLE", + "refined_variant": "Back", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 11, "fields": { "name": "SAND", "variant": "FOREDUNE", - "refined_variant": "Front Slope", + "refined_variant": "Back", "redirect_habitat": null } }, { "model": "api.zone", - "pk": 114, + "pk": 12, "fields": { - "name": "LOW TIDE", - "variant": "Lower Marsh", - "refined_variant": "Reeds", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 115, - "fields": { - "name": "HILL ELEMENTS", - "variant": "Midslope", + "name": "PERMANENT RIVER/STREAM", + "variant": "Upper Scarp", "refined_variant": "Shady", "redirect_habitat": null } }, { "model": "api.zone", - "pk": 116, + "pk": 13, "fields": { - "name": "DETENTION BASIN", - "variant": "Dry Edge", + "name": "LIVING WALL", + "variant": "Sunny", "refined_variant": null, "redirect_habitat": null } }, { "model": "api.zone", - "pk": 117, - "fields": { - "name": "SHELTERBELT", - "variant": "3-5 Row", - "refined_variant": "Edge", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 118, - "fields": { - "name": "Open Wetland/Lake", - "variant": "Swamp", - "refined_variant": "Aquatic emergent", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 119, - "fields": { - "name": "Bush", - "variant": "see BUSH", - "refined_variant": null, - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 120, + "pk": 14, "fields": { "name": "Country/Valley", - "variant": "Seepage", + "variant": "Slip", "refined_variant": "Centre/Wet", "redirect_habitat": null } }, { "model": "api.zone", - "pk": 121, + "pk": 15, "fields": { - "name": "ROAD VERGE/TRAFFIC ISLAND", - "variant": "Water Table", + "name": "STREET/SPECIMEN", + "variant": "Trees", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 16, + "fields": { + "name": "LAWN", + "variant": "Moist", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 17, + "fields": { + "name": "PERMANENT RIVER/STREAM", + "variant": "Lower Scarp", + "refined_variant": "Sunny", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 18, + "fields": { + "name": "RAIL", + "variant": "Inner Rail", "refined_variant": "High Mow", "redirect_habitat": null } }, { "model": "api.zone", - "pk": 122, + "pk": 19, + "fields": { + "name": "PERMANENT RIVER/STREAM", + "variant": "Lower Scarp", + "refined_variant": "Shady", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 20, + "fields": { + "name": "SWALE", + "variant": "Veg Edge", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 21, + "fields": { + "name": "SAND", + "variant": "2ND BACK DUNE STABLE", + "refined_variant": "Front & Crest", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 22, + "fields": { + "name": "ROAD VERGE/TRAFFIC ISLAND", + "variant": "Frangible Edge", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 23, + "fields": { + "name": "RAIN GARDEN", + "variant": "Road Edge", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 24, + "fields": { + "name": "HILL ELEMENTS", + "variant": "Toeslope", + "refined_variant": "Shady", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 25, + "fields": { + "name": "VINEYARD", + "variant": "Vines", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 26, + "fields": { + "name": "HILL ELEMENTS", + "variant": "Upper Slope", + "refined_variant": "Sunny", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 27, + "fields": { + "name": "PERMANENT RIVER/STREAM", + "variant": "Upper Bank", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 28, "fields": { "name": "SAND", "variant": "FOREDUNE", @@ -1221,49 +281,39 @@ }, { "model": "api.zone", - "pk": 123, + "pk": 29, "fields": { - "name": "ROAD VERGE/TRAFFIC ISLAND", - "variant": "Back/Fence", - "refined_variant": "bush", + "name": "HILL ELEMENTS", + "variant": "Upper Slope", + "refined_variant": "Shady", "redirect_habitat": null } }, { "model": "api.zone", - "pk": 124, + "pk": 30, "fields": { - "name": "LANDFILL", - "variant": "compacted", - "refined_variant": "Shrubbery", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 125, - "fields": { - "name": "BUSH PROFILE POSITION", - "variant": "Border", - "refined_variant": "next 2-3 rows", - "redirect_habitat": null - } - }, - { - "model": "api.zone", - "pk": 126, - "fields": { - "name": "LAWN", - "variant": "Dry", + "name": "Streams/Ponds", + "variant": "See Riparian/Wetlands/Lakes", "refined_variant": null, "redirect_habitat": null } }, { "model": "api.zone", - "pk": 127, + "pk": 31, "fields": { - "name": "GREEN ROOF", + "name": "Open Wetland/Lake", + "variant": "Swamp", + "refined_variant": "Aquatic emergent", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 32, + "fields": { + "name": "WALL CREVICES", "variant": "Shady", "refined_variant": null, "redirect_habitat": null @@ -1271,17 +321,37 @@ }, { "model": "api.zone", - "pk": 128, + "pk": 33, "fields": { - "name": "GRAVEL/BOULDER BEACH", - "variant": "Beach Front", + "name": "Matauranga Maori", + "variant": "Fibre/Wood", + "refined_variant": "Domestic", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 34, + "fields": { + "name": "Matauranga Maori", + "variant": "Rongoa/Med", "refined_variant": null, "redirect_habitat": null } }, { "model": "api.zone", - "pk": 129, + "pk": 35, + "fields": { + "name": "WALL CREVICES", + "variant": "Sunny", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 36, "fields": { "name": "SWALE", "variant": "Wet Bed", @@ -1291,17 +361,287 @@ }, { "model": "api.zone", - "pk": 130, + "pk": 37, "fields": { "name": "PERMANENT RIVER/STREAM", - "variant": "Levee", - "refined_variant": "Floodplain", + "variant": "Terrace Top", + "refined_variant": "See Standard Restoration for Locality", "redirect_habitat": null } }, { "model": "api.zone", - "pk": 131, + "pk": 38, + "fields": { + "name": "ROAD VERGE/TRAFFIC ISLAND", + "variant": "Cut/Fill", + "refined_variant": "mid slope", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 39, + "fields": { + "name": "Open Wetland/Lake", + "variant": "Grazing Marsh", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 40, + "fields": { + "name": "EPHEMERAL", + "variant": "Lower Bank", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 41, + "fields": { + "name": "LANDFILL", + "variant": "compacted", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 42, + "fields": { + "name": "HEDGE", + "variant": null, + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 43, + "fields": { + "name": "Open Wetland/Lake", + "variant": "Bog", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 44, + "fields": { + "name": "Matauranga Maori", + "variant": "Taonga/Taoka", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 45, + "fields": { + "name": "ROAD VERGE/TRAFFIC ISLAND", + "variant": "Cut/Fill", + "refined_variant": "crest", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 46, + "fields": { + "name": "BUSH PROFILE POSITION", + "variant": "Skin", + "refined_variant": "outer 1-2 rows", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 47, + "fields": { + "name": "Country/Valley", + "variant": "Moraine", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 48, + "fields": { + "name": "LIVING SCREEN", + "variant": "Pergola", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 49, + "fields": { + "name": "SHRUBBERY", + "variant": "Shrubs", + "refined_variant": "Shrubbery", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 50, + "fields": { + "name": "RAIL", + "variant": "Outer Rail", + "refined_variant": "Back Bush", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 51, + "fields": { + "name": "ROAD VERGE/TRAFFIC ISLAND", + "variant": "Mown Edge", + "refined_variant": "High Mow", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 52, + "fields": { + "name": "LOW TIDE", + "variant": "Mud Flats", + "refined_variant": "Eel Grass", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 53, + "fields": { + "name": "ROAD VERGE/TRAFFIC ISLAND", + "variant": "Water Table", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 54, + "fields": { + "name": "RETENTION POND", + "variant": "Wet Floodplain", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 55, + "fields": { + "name": "ROAD VERGE/TRAFFIC ISLAND", + "variant": "Cut/Fill", + "refined_variant": "foot/toe", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 56, + "fields": { + "name": "SPRAY ZONE", + "variant": "Coastal", + "refined_variant": "Bush Centre", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 57, + "fields": { + "name": "RETENTION POND", + "variant": "Wet Margin", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 58, + "fields": { + "name": "SPRAY ZONE", + "variant": "Coastal", + "refined_variant": "Bush Edge", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 59, + "fields": { + "name": "PERMANENT RIVER/STREAM", + "variant": "Lower Bank", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 60, + "fields": { + "name": "Open Wetland/Lake", + "variant": "Swamp", + "refined_variant": "Fluctuating turf", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 61, + "fields": { + "name": "DETENTION BASIN", + "variant": "Dry Edge", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 62, + "fields": { + "name": "Homestead", + "variant": "see URBAN", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 63, + "fields": { + "name": "HERBACEOUS ", + "variant": "Border", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 64, + "fields": { + "name": "RAIN GARDEN", + "variant": "Veg Edge", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 65, "fields": { "name": "SPRAY ZONE", "variant": "Exposed/Splash Zone", @@ -1311,17 +651,457 @@ }, { "model": "api.zone", - "pk": 132, + "pk": 66, + "fields": { + "name": "LOW TIDE", + "variant": "Lower Marsh", + "refined_variant": "Mangrove", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 67, + "fields": { + "name": "Bush Garden", + "variant": "See Standard Restoration for Locality", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 68, "fields": { "name": "PERMANENT RIVER/STREAM", - "variant": "Lower Bank", + "variant": "Backswamp", "refined_variant": "Floodplain", "redirect_habitat": null } }, { "model": "api.zone", - "pk": 133, + "pk": 69, + "fields": { + "name": "HILL ELEMENTS", + "variant": "Midslope", + "refined_variant": "Sunny", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 70, + "fields": { + "name": "Matauranga Maori", + "variant": "Kai/Food", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 71, + "fields": { + "name": "RAIL", + "variant": "Trackside", + "refined_variant": "High Mow", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 72, + "fields": { + "name": "Bush", + "variant": "see BUSH", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 73, + "fields": { + "name": "SAND", + "variant": "1ST BACK DUNE STABLE", + "refined_variant": "Back", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 74, + "fields": { + "name": "HILL ELEMENTS", + "variant": "Footslope", + "refined_variant": "Sunny", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 75, + "fields": { + "name": "PERMANENT RIVER/STREAM", + "variant": "Scarp Footslope", + "refined_variant": "toe", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 76, + "fields": { + "name": "ROCK GARDEN", + "variant": "Shady", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 77, + "fields": { + "name": "HIGH TIDE", + "variant": "Upper Marsh", + "refined_variant": "Mangrove", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 78, + "fields": { + "name": "Open Wetland/Lake", + "variant": "Swamp", + "refined_variant": "Aquatic floating", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 79, + "fields": { + "name": "ROAD VERGE/TRAFFIC ISLAND", + "variant": "Sight line", + "refined_variant": "High Mow", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 80, + "fields": { + "name": "GRAVEL/CRACKS", + "variant": "Permeable Paving", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 81, + "fields": { + "name": "PERMANENT RIVER/STREAM", + "variant": "Emergent", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 82, + "fields": { + "name": "EPHEMERAL", + "variant": "Bed", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 83, + "fields": { + "name": "PIVOT IRRIGATOR", + "variant": "Under Pivot Arm", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 84, + "fields": { + "name": "SWALE", + "variant": "Road Edge", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 85, + "fields": { + "name": "PERMANENT RIVER/STREAM", + "variant": "Levee", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 86, + "fields": { + "name": "SAND", + "variant": "FOREDUNE", + "refined_variant": "Sand Plain", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 87, + "fields": { + "name": "ROAD VERGE/TRAFFIC ISLAND", + "variant": "Mid", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 88, + "fields": { + "name": "Country/Valley", + "variant": "Outcrop", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 89, + "fields": { + "name": "HILL ELEMENTS", + "variant": "Crest", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 90, + "fields": { + "name": "SAND", + "variant": "FOREDUNE", + "refined_variant": "Crest", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 91, + "fields": { + "name": "RAIN GARDEN", + "variant": "Bed", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 92, + "fields": { + "name": "ROAD VERGE/TRAFFIC ISLAND", + "variant": "Back/Fence", + "refined_variant": "bush", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 93, + "fields": { + "name": "PERMANENT RIVER/STREAM", + "variant": "Aquatic Bed", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 94, + "fields": { + "name": "Country/Valley", + "variant": "Seepage", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 95, + "fields": { + "name": "LAWN", + "variant": "Dry", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 96, + "fields": { + "name": "LIVING WALL", + "variant": "Shady/Indoors", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 97, + "fields": { + "name": "GRAVEL/BOULDER BEACH", + "variant": "Crest & Back", + "refined_variant": "Ridge", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 98, + "fields": { + "name": "LOW TIDE", + "variant": "Lower Marsh", + "refined_variant": "Reeds", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 99, + "fields": { + "name": "Open Wetland/Lake", + "variant": "Swamp", + "refined_variant": "Fluctuating Tussock", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 100, + "fields": { + "name": "DETENTION BASIN", + "variant": "Dry Bed", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 101, + "fields": { + "name": "Country/Valley", + "variant": "Montane", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 102, + "fields": { + "name": "HILL ELEMENTS", + "variant": "Midslope", + "refined_variant": "Shady", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 103, + "fields": { + "name": "SWALE", + "variant": "Dry Bed", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 104, + "fields": { + "name": "SAND", + "variant": "FOREDUNE", + "refined_variant": "Toe", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 105, + "fields": { + "name": "RETENTION POND", + "variant": "Aquatic", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 106, + "fields": { + "name": "SAND", + "variant": "1ST BACK DUNE STABLE", + "refined_variant": "Salt turf", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 107, + "fields": { + "name": "HIGH TIDE", + "variant": "Upper Marsh", + "refined_variant": "Reeds", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 108, + "fields": { + "name": "SAND", + "variant": "FOREDUNE", + "refined_variant": "Front Slope", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 109, + "fields": { + "name": "BUSH PROFILE POSITION", + "variant": "Core", + "refined_variant": "inner", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 110, + "fields": { + "name": "LOW TIDE", + "variant": "Lagoon", + "refined_variant": "Reeds", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 111, "fields": { "name": "ROCK GARDEN", "variant": "Sunny", @@ -1331,12 +1111,212 @@ }, { "model": "api.zone", - "pk": 134, + "pk": 112, + "fields": { + "name": "SAND", + "variant": "1ST BACK DUNE STABLE", + "refined_variant": "Interdune Ephemeral Wetland", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 113, + "fields": { + "name": "PIVOT IRRIGATOR", + "variant": "Corner & Other Bush", + "refined_variant": "See Standard Bush Restoration for Locality with emphasis on skin and border", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 114, + "fields": { + "name": "Country/Valley", + "variant": "Slip", + "refined_variant": "Edge", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 115, + "fields": { + "name": "SAND", + "variant": "1ST BACK DUNE STABLE", + "refined_variant": "Front & Crest", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 116, + "fields": { + "name": "RETENTION POND", + "variant": "Emergent", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 117, + "fields": { + "name": "Hedgerow", + "variant": "< 2m", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 118, + "fields": { + "name": "GRAVEL/BOULDER BEACH", + "variant": "Beach Front", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 119, + "fields": { + "name": "RAIL", + "variant": "Inner Rail", + "refined_variant": "LF Shrubbery", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 120, + "fields": { + "name": "SPRAY ZONE", + "variant": "Exposed", + "refined_variant": "Cliffs", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 121, + "fields": { + "name": "GREEN ROOF", + "variant": "Shady", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 122, + "fields": { + "name": "GREEN ROOF", + "variant": "Sunny", + "refined_variant": null, + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 123, + "fields": { + "name": "HILL ELEMENTS", + "variant": "Toeslope", + "refined_variant": "Sunny", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 124, + "fields": { + "name": "Country/Valley", + "variant": "Plains/", + "refined_variant": "Rolling", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 125, + "fields": { + "name": "SHELTERBELT", + "variant": "3-5 Row", + "refined_variant": "Edge", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 126, + "fields": { + "name": "HIGH TIDE", + "variant": "Highest Marsh", + "refined_variant": "Scrub", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 127, + "fields": { + "name": "Open Wetland/Lake", + "variant": "Fen", + "refined_variant": "reeds/shrubs", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 128, "fields": { "name": "RAIN GARDEN", - "variant": "Veg Edge", + "variant": "CIPTED Bed", "refined_variant": null, "redirect_habitat": null } + }, + { + "model": "api.zone", + "pk": 129, + "fields": { + "name": "COURTYARD", + "variant": "Protected", + "refined_variant": "sheltered", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 130, + "fields": { + "name": "BUSH PROFILE POSITION", + "variant": "Border", + "refined_variant": "next 2-3 rows", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 131, + "fields": { + "name": "SHELTERBELT", + "variant": "3-5 Row", + "refined_variant": "Centre", + "redirect_habitat": null + } + }, + { + "model": "api.zone", + "pk": 132, + "fields": { + "name": "HILL ELEMENTS", + "variant": "Footslope", + "refined_variant": "Shady", + "redirect_habitat": null + } } ] \ No newline at end of file diff --git a/backend/right_tree/api/management/commands/loadsitedata.py b/backend/right_tree/api/management/commands/loadsitedata.py index a714db9..f526f11 100644 --- a/backend/right_tree/api/management/commands/loadsitedata.py +++ b/backend/right_tree/api/management/commands/loadsitedata.py @@ -1,21 +1,8 @@ from django.core.management.base import BaseCommand -from pathlib import Path - -import right_tree.api.data -from ._spreadsheet_helpers import * +from ._spreadsheet_constants import * from right_tree.api.models import Habitat, Zone -SPREADSHEET_FILENAME = 'plant_data.xlsx' -SITE_DATA_START_COL = 25 -HABITAT_ROW = 1 -ZONE_NAME_ROW = 2 -ZONE_VARIANT_ROW = 3 -ZONE_REFINED_VARIANT_ROW = 5 - -DATA_DIR_PATH = Path(right_tree.api.data.__file__).resolve().parent -SPREADSHEET = get_spreadsheet(DATA_DIR_PATH, SPREADSHEET_FILENAME) - def load_habitat_zone_data(sheet): """ Loads habitat and zone objects from data defined in the spreadsheet. @@ -26,28 +13,30 @@ def load_habitat_zone_data(sheet): current_habitat = current_zone = current_variant = current_refined_variant = None - for col in sheet.iter_cols(min_col=SITE_DATA_START_COL, min_row=ZONE_NAME_ROW, max_row=ZONE_REFINED_VARIANT_ROW, values_only=True): + for col in sheet.iter_cols(min_col=SITE_DATA_START_COL, max_col=SITE_DATA_STOP_COL, min_row=HABITAT_ROW, max_row=ZONE_REFINED_VARIANT_ROW, values_only=True): habitat, zone_name, zone_variant, zone_refined_variant = col if habitat is not None: current_habitat = habitat current_zone = current_variant = current_refined_variant = None + + if zone_name is not None: + current_zone = zone_name + current_variant = current_refined_variant = None + + if zone_variant is not None: + current_variant = zone_variant + current_refined_variant = None - current_zone = zone_name if zone_name is not None else current_zone - current_variant = zone_variant if zone_variant is not None else current_variant current_refined_variant = zone_refined_variant if zone_refined_variant is not None else current_refined_variant habitats.add(current_habitat) zones.add((current_zone, current_variant, current_refined_variant)) - print("Creating Habitat Objects") - print("--------------------------") for habitat in habitats: habitat_obj = Habitat(name=habitat) habitat_obj.save() - print("Creating Zone Objects") - print("--------------------------") for zone, variant, refined_variant in zones: zone_obj = Zone(name=zone, variant=variant, refined_variant=refined_variant) @@ -58,5 +47,4 @@ class Command(BaseCommand): help = 'Ingests the site spreadsheet data into the database' def handle(self, *args, **options): - self.stdout.write('Creating habitat/zone fixtures...') load_habitat_zone_data(SPREADSHEET)