diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-09-30 19:05:12 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:20 +0100 |
commit | b4d3b7d7d8a994f636c16697f245ac14d7a3f547 (patch) | |
tree | 85df1e328015c57cc064e8ccdae78cf0e1a4e72d /archaeological_warehouse/models.py | |
parent | e24fb4b832e80a52d1ed28d870a2d63eca2ef6c1 (diff) | |
download | Ishtar-b4d3b7d7d8a994f636c16697f245ac14d7a3f547.tar.bz2 Ishtar-b4d3b7d7d8a994f636c16697f245ac14d7a3f547.zip |
Stats: generation on demand
Diffstat (limited to 'archaeological_warehouse/models.py')
-rw-r--r-- | archaeological_warehouse/models.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index ffc491ddc..f89092dba 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -118,7 +118,8 @@ class DivisionContainer(DashboardFormItem): @property def number_of_finds_by_place(self, update=False): - return self._get_or_set_stats('_number_of_finds_by_place', update) + return self._get_or_set_stats('_number_of_finds_by_place', update, + expected_type=list) def _number_of_containers_by_place(self): return self._number_of_items_by_place( @@ -126,7 +127,8 @@ class DivisionContainer(DashboardFormItem): @property def number_of_containers_by_place(self, update=False): - return self._get_or_set_stats('_number_of_containers_by_place', update) + return self._get_or_set_stats('_number_of_containers_by_place', update, + expected_type=list) def _get_divisions(self, current_path, remaining_division, depth=0): if not remaining_division: |