Martin Pépin
8a74d543d4
Proposition.user is a User and not an ErnestoUser
2020-01-05 17:46:23 +01:00
Martin Pépin
9ddba47e83
Minor proposition tests cleanups
2020-01-05 17:27:31 +01:00
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
dbe54f075e
More robust tests for the propositions list view
...
Creating some data to populate the page revealed some bug in the
template while refactoring the Reponses/Answer model in the previous
commit.
2020-01-05 15:31:32 +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
8773c67634
Django2: change urls in templates
2018-01-05 00:37:44 +01:00
Martin Pépin
d3cbcf391f
Specify on_delete everywhere
2018-01-05 00:08:20 +01:00
Martin Pépin
a2e78d8dcc
Django2 urls
2018-01-05 00:08:12 +01:00
Martin Pépin
6f091ed40a
squash all migrations
2017-05-23 09:36:48 +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
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
37606b0910
Ménage dans les templates
...
- Déplacement des templates des applications sous la racine des applications.
- Suppression des templates inutiles dans /templates/admin :
seule la page base_site.html comporte des modifications
2016-07-27 10:22:33 +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
Kerl13
30ab0adb79
Gros nettoyage de printemps
...
Suppression des `__pycache__/` et `*.pyc` principalement.
2016-06-20 13:29:52 +02:00
Aymeric Fromherz
34d56e8635
Plop
2015-09-23 08:08:26 +02:00
R1kM
20a02d1013
Bawa
2015-07-22 16:08:59 -04:00