def _get_aggr_donazioni(self, ): values = [] # get aggr donazioni uses programmazione filters because it's used only for home page: no filters or # territorio page: only territorio filters for tipologia in Donazione.TIPO_CEDENTE: d = {'name': tipologia[1], 'tipologia': tipologia} d.update(Donazione.get_aggregates(tipologia=tipologia, **self.programmazione_filters)) values.append(d) return values
def _get_totale_donazioni(self): return Donazione.get_aggregates(tipologia=None, **self.programmazione_filters)