From d9d5223d34083900b1eb66fcb4c70d3e23ae24d1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 14 May 2019 16:12:21 +0200 Subject: Statistics - JS and templates to manage graphs and tables --- ishtar_common/models.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 7aa8706b3..8e5983a45 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1931,10 +1931,13 @@ class TemplateItem: class StatisticItem: - STATISTIC_MODALITIES = [] # example: "operation type", "material type" + STATISTIC_MODALITIES = [] # example: "year", "operation_type__label" + STATISTIC_MODALITIES_OPTIONS = OrderedDict() # example: + # OrderedDict([('year', _("Year")), + # ("operation_type__label", _("Operation type"))]) STATISTIC_SUM_VARIABLE = OrderedDict( - (("pk", _("number")),) - ) # example: "price", "volume" + (("pk", _("Number")),) + ) # example: "Price", "Volume" class BaseHistorizedItem(StatisticItem, TemplateItem, FullSearch, Imported, -- cgit v1.2.3