Commit graph

11 commits

Author SHA1 Message Date
Martin Pépin
5d6e2c8b4f
Rewrite the PropositionDelete view 2020-01-05 17:22:33 +01:00
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
Martin Pépin
6ef880339f
Refactor the Reponses model 2020-01-05 15:30:50 +01:00
Martin Pépin
88f62a56be
Factorize the code for propositions' answers 2020-01-05 12:03:41 +01:00
Martin Pépin
022583f0a9
Reimplement proposition list 2020-01-05 00:32:02 +01:00
Martin Pépin
dc2cd07d93
New implementation + tests for Prop creation 2020-01-05 00:18:31 +01:00
Martin Pépin
8773c67634 Django2: change urls in templates 2018-01-05 00:37:44 +01:00
Martin Pépin
a2e78d8dcc Django2 urls 2018-01-05 00:08:12 +01:00
Martin Pépin
a206288bbe Meilleures url
On n'utilise plus des chemins du type `"calendrier.views.home"` sous forme
de chaîne de caratères (déprécié).
2016-08-29 05:38:10 +02:00
Martin Pépin
69b0b13ad3 Nettoyage
- PEP8
- Fichiers inutilisés
2016-07-14 01:58:52 +02:00
R1kM
20a02d1013 Bawa 2015-07-22 16:08:59 -04:00