From 88fa8d535bc723bae9b4e06460ca0bf639ed57e1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 27 May 2019 09:27:21 +0200 Subject: Statistics: manage units --- archaeological_files/models.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'archaeological_files/models.py') diff --git a/archaeological_files/models.py b/archaeological_files/models.py index c4bdb68f5..e089df24e 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -103,9 +103,10 @@ class File(ClosedItem, DocumentItem, BaseHistorizedItem, OwnPerms, ValueGetter, key for key, lbl in STATISTIC_MODALITIES_OPTIONS.items()] STATISTIC_SUM_VARIABLE = OrderedDict( ( - ("pk", _("Number")), - ("total_surface", _(u"Total surface (m2)")), - ("total_developed_surface", _(u"Total developed surface (m2)")), + ("pk", (_("Number"), 1)), + ("total_surface", (_(u"Total surface (km2)"), 0.000001)), + ("total_developed_surface", ( + _(u"Total developed surface (km2)"), 0.000001)), ) ) -- cgit v1.2.3