diff options
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 |
commit | d9d5223d34083900b1eb66fcb4c70d3e23ae24d1 (patch) | |
tree | 634b407ea8c7b7b778c485744fcea9ac493f5541 /archaeological_operations | |
parent | 60d7d9edb2fe286fd6c1cf47b6df04cdadcc8a7c (diff) | |
download | Ishtar-d9d5223d34083900b1eb66fcb4c70d3e23ae24d1.tar.bz2 Ishtar-d9d5223d34083900b1eb66fcb4c70d3e23ae24d1.zip |
Statistics - JS and templates to manage graphs and tables
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/models.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 4f180c3d5..d18b76f80 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -17,6 +17,7 @@ # See the file COPYING for details. +from collections import OrderedDict import datetime from itertools import groupby @@ -530,6 +531,11 @@ class Operation(ClosedItem, DocumentItem, BaseHistorizedItem, QRCodeItem, # statistics STATISTIC_MODALITIES = ["year", "operation_type__label", "towns__cached_label"] + STATISTIC_MODALITIES_OPTIONS = OrderedDict([ + ('year', _("Year")), + ("operation_type__label", _("Operation type")), + ("towns__cached_label", _("Towns")), + ]) # search parameters BOOL_FIELDS = ['end_date__isnull', 'virtual_operation', |