Commit graph

14 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
9b6cc2b486
Refactor the Prop(osition) model 2020-01-05 15:58:16 +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
a0b307f829
Remove dead debug view 2020-01-04 23:39:13 +01:00
Martin Pépin
5e5ca11115
Fix broken urls in propositions 2020-01-04 00:15:30 +01:00
Martin Pépin
a2e78d8dcc Django2 urls 2018-01-05 00:08:12 +01:00
Martin Pépin
4f1ae20bb4 Suppression d'erreurs sur les get
On remplace les `MyModel.objects.get(...)` par des
`get_object_or_404(MyModel, ...)`
2016-09-24 00:55:01 +02:00
Martin Pépin
69b0b13ad3 Nettoyage
- PEP8
- Fichiers inutilisés
2016-07-14 01:58:52 +02:00
Martin Pépin
334c1d2f00 Commit bourrin
Ajoute des changements effectués en prod sans passer par le git
2016-06-21 00:33:32 +02:00
R1kM
20a02d1013 Bawa 2015-07-22 16:08:59 -04:00