Merged
Aurélien Delobelle requested to merge 
aureplop/fix_stats  into 
master 
 
K-Fêt
- fix graph size of stats
- for real, users can only see/get their own account stats
- article stats can only be accessed by teamkfet
K-Fêt - Stats
- clean py code
- 2 urls by kind of stats:
- 
kfet.<...>.stat.<type>.list: manifest of proposed stats to user
- 
kfet.<...>.stat.<type>: return stat datasets according to GET params (scale, begin, end, ...)
 
Scale
- base class which implements logic for a scale
- create a new scale, given params as begin,end,last...
- iterate over it to get begin, endintervals (chunks)
- give chunks labels
DayScale, WeekScale, MonthScale
- use Scale
- their chunks length is 1 day, 1 week, 1 month
- take into account that a k-fet day begins at KFET_WAKES_UP_AT
K-Fêt - Misc
- fix GET params in ajax call of statistic.js
- delete unused template account_read_title.html
- delete unused imports and defs in views.py
- 
PkUrlMixin: use withSingleObject...class-based view, it gets object by filtering model objects onpk_url_kwarg