ernestophone.ens.fr/propositions
Martin Pépin 5381aba922
Remove the nb_{yes,no} fields
These fields duplicate information that is already present in the Answer
table. I guess they exist(ed) as an optimisation to avoid recomputing
the number of positive and negative answers per proposition each time
the list page is loaded. Given the small number of propositions we have
in practice and the extra housekeeping required to keep these fields up
to date, I consider simplicity matters more here.
2020-01-05 16:34:10 +01:00
..
migrations Remove the nb_{yes,no} fields 2020-01-05 16:34:10 +01:00
templates/propositions Refactor the Prop(osition) model 2020-01-05 15:58:16 +01:00
templatetags Refactor the Reponses model 2020-01-05 15:30:50 +01:00
__init__.py Bawa 2015-07-22 16:08:59 -04:00
models.py Remove the nb_{yes,no} fields 2020-01-05 16:34:10 +01:00
tests.py Remove the nb_{yes,no} fields 2020-01-05 16:34:10 +01:00
urls.py Remove the nb_{yes,no} fields 2020-01-05 16:34:10 +01:00
utils.py Nettoyage 2016-07-14 01:58:52 +02:00
views.py Remove the nb_{yes,no} fields 2020-01-05 16:34:10 +01:00