summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-05-14 16:12:21 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:28 +0200
commit0122c68228b0cf3f1ec152481bcb7c22248248d3 (patch)
tree634b407ea8c7b7b778c485744fcea9ac493f5541 /ishtar_common/models.py
parent014eddee87b0e6e871cf4a201884cf60a41cc63e (diff)
downloadIshtar-0122c68228b0cf3f1ec152481bcb7c22248248d3.tar.bz2
Ishtar-0122c68228b0cf3f1ec152481bcb7c22248248d3.zip
Statistics - JS and templates to manage graphs and tables
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py9
1 files changed, 6 insertions, 3 deletions
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,