diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-05 11:33:54 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-05 11:33:54 +0200 |
commit | 2e512bc9dffca5624342aa75ca01b3ff7f390141 (patch) | |
tree | 21976a27b67c98aa1a79a63f190d06dd489b89ec /archaeological_operations/models.py | |
parent | 3a5dbf688d058bd39aaae308cd7224ddd42c7890 (diff) | |
download | Ishtar-2e512bc9dffca5624342aa75ca01b3ff7f390141.tar.bz2 Ishtar-2e512bc9dffca5624342aa75ca01b3ff7f390141.zip |
Warehouse sheet: provide statistics (refs #3398)
- Number of finds (total and by places)
- Number of container (total and by places)
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index bef149b2c..3826678c3 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -593,14 +593,6 @@ class Operation(ClosedItem, BaseHistorizedItem, ImageModel, OwnPerms, nb = self.parcels.count() return nb - def _get_or_set_stats(self, funcname, update): - key, val = get_cache(self.__class__, [funcname, self.pk]) - if not update and val is not None: - return val - val = getattr(self, funcname)() - cache.set(key, val, settings.CACHE_TIMEOUT) - return val - @property def nb_acts(self, update=False): _(u"Number of administrative acts") |