Commit graph

42 commits

Author SHA1 Message Date
Dana Lambert
65bed425cf Add production envrionmennt 2021-11-16 17:30:40 +13:00
Dana Lambert
627816a3cd Add sample habitat image and zone data
- Renames fixture scripts
2021-11-10 17:34:16 +13:00
Dana Lambert
a99f63898f Update CORS url in django settings to use an env var 2021-11-10 17:20:26 +13:00
Dana Lambert
b3c576a214 Apply ignore filter rules 2021-11-10 14:15:25 +13:00
Dana Lambert
6540fe640b Add filter ignore information to zone fixtures 2021-11-10 13:11:32 +13:00
Dana Lambert
841da813db Add filter ignore fields to zone model 2021-11-10 13:11:13 +13:00
Dana Lambert
41d61ce3c5 Add forest position data as part of the plant results 2021-11-10 10:33:34 +13:00
Dana Lambert
d5d029cd2f Review fixes
- Remove redundant print statements
- Update endpoint for csv download
2021-11-09 15:16:17 +13:00
Dana Lambert
35aa9cbe70 Create csv download endpoint 2021-11-08 17:00:04 +13:00
Dana Lambert
edd2054763 Create plant display fields on the backend 2021-11-08 15:51:05 +13:00
Dana Lambert
73e7fe88f8 Fix zone filter if no zone is specified in params 2021-11-08 11:01:13 +13:00
Dana Lambert
fe84079885 Add admin autocomplete, search fields and ordering to zone field in ZoneImageSegment 2021-11-08 11:01:13 +13:00
Dana Lambert
de0b5abb7b Add zone filter on backend 2021-11-08 11:01:13 +13:00
Dana Lambert
c79d287384 Add habitat image endpoint, view and serializer 2021-11-08 11:01:13 +13:00
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