gestioCOF/kfet
Aurélien Delobelle 3f4a1adbb9 Fewer queries on stats/scales + Fix
Scales:
- Fix #chunks when used with std_chunk=True (there was one too many at
  the beginning)
- Scale.end gives the end of the last chunk (instead of its start)
  So scale.begin -> scale.end gives the full range of the scale.

`kfet_day` now returns an aware datetime.

ScaleMixin:
- new method `get_by_chunks` which use only one query and ranks
  elements according to the scale. Elements are returned by a generator
  for each scale chunk (and all chunks are returned as a generator too).

ArticlesStatSales and AccountStatOperations use this new method to
avoid issuing #scale_chunks queries.

ArticleStat:
- fixed on Chrome
2017-04-12 18:03:31 +02:00
..
fixtures create checkout dynamically 2017-02-08 15:26:56 -02:00
management/commands createopes use only bulk_create 2017-04-06 13:33:40 +02:00
migrations Subvention -> Réduction + units for kfet_config 2017-04-10 11:36:06 +02:00
static/kfet Fewer queries on stats/scales + Fix 2017-04-12 18:03:31 +02:00
templates/kfet Fewer queries on stats/scales + Fix 2017-04-12 18:03:31 +02:00
templatetags Use django-djconfig for kfet app. 2017-04-03 20:32:16 +02:00
tests Fix kfet tests 2017-04-10 11:52:57 +02:00
__init__.py Ajout message pour proposer connexion standard 2016-09-10 22:49:07 +02:00
admin.py initial 2016-08-02 10:40:46 +02:00
apps.py Use django-djconfig for kfet app. 2017-04-03 20:32:16 +02:00
autocomplete.py exclude empty strings from ldap results 2017-04-01 22:07:32 +01:00
backends.py Add custom Manager for Account model. 2017-04-06 18:23:27 +02:00
config.py Subvention -> Réduction + units for kfet_config 2017-04-10 11:36:06 +02:00
consumers.py Enable authentication on KPsul websocket. 2017-04-09 16:10:27 +02:00
context_processors.py Use django-djconfig for kfet app. 2017-04-03 20:32:16 +02:00
decorators.py Remove lambda operators 2017-03-20 20:24:44 -03:00
forms.py Merge branch 'master' into aureplop/fewer_requests 2017-04-11 22:46:18 +02:00
middleware.py initial checkout selected 2017-04-06 16:45:44 +02:00
models.py Merge branch 'master' into aureplop/fewer_requests 2017-04-11 22:46:18 +02:00
routing.py Revert "WS : quand la K-Fêt est ouverte ?" 2017-02-08 12:42:07 +01:00
signals.py Ajout message pour proposer connexion standard 2016-09-10 22:49:07 +02:00
statistic.py Fewer queries on stats/scales + Fix 2017-04-12 18:03:31 +02:00
urls.py Merge branch 'master' into aureplop/kfet_config 2017-04-08 18:36:28 +02:00
views.py Fewer queries on stats/scales + Fix 2017-04-12 18:03:31 +02:00