Commit graph

188 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
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
b611322d26
Version 0.2 2020-01-04 01:09:13 +01:00
Martin Pépin
07ba12dd26
Update changelog 2020-01-04 01:05:52 +01:00
Martin Pépin
d1eda9033d
Bump Django to 2.2.* 2020-01-04 01:02:33 +01:00
Martin Pépin
45ab8b55a2
Add a changelog file 2020-01-04 00:16:00 +01:00
Martin Pépin
5e5ca11115
Fix broken urls in propositions 2020-01-04 00:15:30 +01:00
Martin Pépin
1176bb1eec
Fix broken urls 2020-01-04 00:01:16 +01:00
Martin Pépin
2c6df31538
Fix event descriptions disappearance 2020-01-03 23:37:05 +01:00
Martin Pépin
d20ebd9f8d only chef users can see the instrument count 2019-03-16 19:57:13 +01:00
Martin Pépin
ae2ba509d2 nicer tables? (bootstrap) 2019-03-16 19:44:19 +01:00
Martin Pépin
116c41709c number of each instrument on the event view 2019-03-16 19:40:27 +01:00
Martin Pépin
1a935523c6 rewrite the event view in a much cleaner way
- Cleaner code, no locals
- Indentation in the template makes it readable!
2019-03-16 19:09:12 +01:00
Martin Pépin
fe06636502 remove duplicate code (view_eventbis) 2019-03-16 18:54:29 +01:00
Martin Pépin
7368f317ad display doodlename in the admin interface
Fixes issue #14
2019-03-16 18:37:45 +01:00
Martin Pépin
e15bde964f cosmetic: python-black 2019-03-16 18:32:49 +01:00
Martin Pépin
75e3d2e1c0 rm media/partitions from STATICFILES_DIRS 2019-03-16 18:25:41 +01:00
Martin Pépin
f1c5c121c9 (re?)add a missing test file 2019-03-16 18:22:17 +01:00
Martin Pépin
e2a4b126d5 fix a leftover old-style url name 2019-03-16 18:18:19 +01:00
Martin Pépin
f7fe0eaa71 fix erroneous reverse_lazy call 2019-03-16 18:16:29 +01:00
Martin Pépin
8d49252940 Fix url in response.html 2018-06-26 10:27:55 +02:00
Martin Pepin
10aa0b1321 Merge branch 'Evarin/fix-things' into 'master'
Fix bugs

See merge request cof-geek/Ernesto!7
2018-06-26 10:03:57 +02:00
Evarin
83dd7af9ca Fix pad edition 2018-06-25 20:37:19 +02:00
Evarin
e5a35251cd Répare et nettoie les URLs 2018-06-25 20:36:58 +02:00
Martin Pepin
8d74be936b Merge branch 'Evarin/various-fixes' into 'master'
Deux petits débugs

See merge request cof-geek/Ernesto!6
2018-06-25 14:24:09 +02:00
Evarin
d50dff0c28 Fix pour la détection du champ username par Firefox
Étrangement, sur firefox, le mot de passe s'enregistre mais pas le nom d'utilisateur, c'est peu pratique.
Avec ces changement, c'est réparé.
2018-06-24 22:38:53 +02:00
Evarin
574b5186de Répare le problème avec les espaces et extensions de fichier 2018-06-24 22:38:17 +02:00
Martin Pepin
217e644db3 Merge branch 'django2' into 'master'
Migration vers Django 2.0 + tests

See merge request cof-geek/Ernesto!4
2018-05-01 13:17:10 +02:00
Martin Pépin
4811f218e5 Fix last urls 2018-05-01 12:44:34 +02:00
Martin Pépin
1ea12ed3f9 Merge branch 'master' into django2 2018-05-01 10:09:50 +02:00
Martin Pepin
8e50dffcce Merge branch 'categories' into 'master'
Catégories de partitions éditables

See merge request !5
2018-01-06 19:13:33 +01:00
Martin Pépin
f26c4496e1 Merge branch 'master' into categories 2018-01-06 19:11:43 +01:00
Martin Pépin
0b7464e16d Hotfix: event emails are broken 2018-01-06 19:02:48 +01:00
Martin Pépin
cd149f1052 Fix typo in "previous year" on the calendar 2018-01-05 15:13:13 +01:00
Martin Pépin
81d9757e61 Minimal flake8 config 2018-01-05 14:13:12 +01:00
Martin Pépin
745cc4c43e A few tests for calendar views 2018-01-05 14:13:12 +01:00
Martin Pépin
5e0495fb94 a few tests for partition pages 2018-01-05 14:13:12 +01:00
Martin Pépin
b2ce6629c8 Fix some old-style urls 2018-01-05 14:12:50 +01:00
Martin Pépin
ec955edb33 Hack: fix naming bug in the "see" view 2018-01-05 11:10:06 +01:00
Martin Pépin
1bc0766774 use set.set for m2m assignation 2018-01-05 09:54:23 +01:00
Martin Pépin
8773c67634 Django2: change urls in templates 2018-01-05 00:37:44 +01:00
Martin Pépin
2cd06b899d remove old admin stuff 2018-01-05 00:37:06 +01:00
Martin Pépin
8481874ad7 is_authenticated is now a @property 2018-01-05 00:12:03 +01:00