diff options
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") | 
