From bbba99c79674514c3500c0c78dbeaefea73daf8b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 28 Oct 2019 12:09:28 +0100 Subject: Fix statistics for operations - Warehouse: long timeout for stats --- archaeological_warehouse/models.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'archaeological_warehouse/models.py') diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index cc3542c79..ba53dc49f 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -284,16 +284,14 @@ class Warehouse(Address, DocumentItem, GeoItem, QRCodeItem, DashboardFormItem, @property def number_of_finds_by_place(self, update=False): - return self._get_or_set_stats('_number_of_finds_by_place', update, - settings.CACHE_SMALLTIMEOUT) + return self._get_or_set_stats('_number_of_finds_by_place', update) def _number_of_containers_by_place(self): return self._number_of_items_by_place(Container) @property def number_of_containers_by_place(self, update=False): - return self._get_or_set_stats('_number_of_containers_by_place', update, - settings.CACHE_SMALLTIMEOUT) + return self._get_or_set_stats('_number_of_containers_by_place', update) def merge(self, item, keep_old=False): # do not recreate missing divisions -- cgit v1.2.3