K-Psul - Basket refactor
- Almost done.
ModelForest
- Add create method (based on previous get_or_create). Direction defaults to 0.
- Add delete method.
- Methods find, traverse, update, delete can also take a model (class) as first
argument. String representation of model still works.
- Fix child linking to parent in create method.
ModelForest -> ForestDisplay
- (One-way data binding) Changes on a ModelForest are directly reflected on
listening ForestDisplay(s).
- ArticleManager and KHistory become simpler.
Config
- Add addcost key, shorthand for double addcost keys check.
K-Psul
- Improve display for basket summary and previous operation.
- Clean js code / duplicates.
- Some components gains chance to trigger/handle events. They are really happy.
Eg basket amounts and summary are updated thanks to these events if the
selected account is changed.
Formatters
- Fixes addcost and amount display.
History
- Fix options management (api_options were overrided and K-Psul displayed more
than the last day history).
- Fix data display, thanks to formatters fixes and modelforest fixes.
- Non-K-Fêt group membership is no longer erased by the account edit
form.
- Add some tests to ensure proposed choices in this form corresponds to
K-Fêt groups + test case for #161.
Fixes#161
New organisation of settings files
- common.py: the settings that are shared by all the environments we have + the secrets (see below).
- dev.py: the settings used by the vagrant VM for local development.
- prod.py: the production settings (for both www.cof.ens.fr and dev.cof.ens.fr)
- secret.py: some settings like the SECRET_KEY or the database's credentials are loaded from an untracked file called secret.py in the same directory. This secrets are loaded by the common settings file.
See merge request !222
- Typo
- Removes old comments
- Moves the template debug context processor back to the common file: it
won't be loaded anyway if `DEBUG=False`.
- Ddt's middleware should be loaded first