OpenTreeMap / otm-core

OpenTreeMap is a collaborative platform for crowdsourced tree inventory, ecosystem services calculations, urban forestry analysis, and community engagement.
www.opentreemap.org
Other
186 stars 88 forks source link

Export values in the units specified on the units management page #3223

Closed jwalgran closed 6 years ago

jwalgran commented 6 years ago

NOTE: This PR is built on top of #3222. Only commit 7d66d4f is new

Overview

Prior to this PR exported data was always in the default English units.

I took advantage of the custom serializer support in django-queryset-csv to do the conversions.

Connects https://github.com/OpenTreeMap/otm-clients/issues/399

Testing Instructions

Setup

Test

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.03%) to 83.869% when pulling 7d66d4f3fba8ade8afc37a13e8ca1a738f51120e on jw/export-units-fix into 83e32dad3c420db3a94fade7d4fd4e017283023d on develop.