Commit graph

78 commits

Author SHA1 Message Date
Dana Lambert
29b9051773 Refactor get_zone_pk_mapping method 2021-11-08 10:53:38 +13:00
Dana Lambert
06e6f4322c Add /habitats endpoint and fix plants zone serializer 2021-11-05 11:16:53 +13:00
Dana Lambert
b5b39a5c18 Alter the habitat image model to use a related name images 2021-11-05 11:13:59 +13:00
Dana Lambert
2f165e4b38 Fix load site data command ingestion logic and update fixtures 2021-11-04 15:00:50 +13:00
Dana Lambert
625c637f99 Add zones to plant fixture creation and extract spreadsheet constants 2021-11-04 14:11:50 +13:00
Dana Lambert
d48f202634 Add zones to plant model 2021-11-04 14:08:31 +13:00
Dana Lambert
34561a85bb Add intial zones and habitats fixtures 2021-11-04 11:18:56 +13:00
Dana Lambert
6b65ac77b3 Add command to initially load habitat and zone data 2021-11-04 11:18:42 +13:00
Dana Lambert
745b0b3007 Add Habitat, Zone, HabitatImage and ZoneImageSegment models 2021-11-04 11:18:04 +13:00
Dana Lambert
039d8d14ec Update plant ingestion script for new spreadsheet format 2021-11-02 09:20:51 +13:00
Dana Lambert
8855bcb2ba Update commonname field to have a max_length of 200 2021-11-02 09:20:47 +13:00
Dana Lambert
49bcc85116 Add api endpoints for collecting location details
- includes soil order name and code, ecological district, ecological region and address from linz
2021-10-22 16:01:38 +13:00
Dana Lambert
2302ed6fc6 Add utils file with helper methods to request data from linz + docs 2021-10-22 16:01:31 +13:00
Dana Lambert
72110cd19f Add all fields to plant serializer 2021-10-20 12:37:45 +13:00
Dana Lambert
cc3c3e7e9a Add soil variant filter 2021-10-20 12:36:48 +13:00
Dana Lambert
cb348b0f5d Fix soil variant spreadsheet import bug where all variants added 2021-10-20 12:36:06 +13:00
Dana Lambert
12ebe31cf5 Add coordinate filter on the backend
- filters plants based on ecological region and soil order
2021-10-19 16:06:21 +13:00
Dana Lambert
530089c19c Add documentation to the spreadsheet processing methods 2021-10-19 10:39:07 +13:00
Dana Lambert
299e609c25 Add django command to populate the database with spreadsheet plant data 2021-10-15 14:40:14 +13:00
Dana Lambert
aa57c6e101 Add django command to populate the database with shapefile data 2021-10-15 14:39:03 +13:00
Dana Lambert
b02d7d50de Register models with django admin 2021-10-15 14:38:14 +13:00
Dana Lambert
d47416273d Add django fixtures for base data 2021-10-15 14:34:48 +13:00
Dana Lambert
e068ed047b Add relational models for plants and related fields (excludes habitat and zone) 2021-10-15 14:33:13 +13:00
Dana Lambert
6dfa65ee77 Add django gis extension 2021-10-15 14:31:52 +13:00
Dana Lambert
b699e50754 Add django cors headers to backend 2021-10-07 10:17:32 +13:00
Dana Lambert
bb307d34d2 Add django rest framework and basic plant model
- Adds django rest framework to requirements
- Adds basic plant model with id and name fields
- Adds CRUD endpoints to interact with plant objects
2021-10-07 08:59:57 +13:00
Dana Lambert
9fc83f5974 Connect database to Django backend 2021-10-06 14:37:29 +13:00
Dana Lambert
88f3331c46 Add base Django backend project 2021-10-06 12:36:07 +13:00