Commit graph

46 commits

Author SHA1 Message Date
Ludovic Stephan 8b73460165
Make flake8 happy 2020-12-04 17:52:33 +01:00
Ludovic Stephan 411d7e7dce
On peut revendre une place qu'on a payée 2020-12-04 17:52:21 +01:00
Ludovic Stephan 71cae7f5ca Remove dead code 2019-01-07 22:50:30 +01:00
Ludovic Stephan 47c02d72af Réorganisation de bda/forms
Suppression de code mort, tri des formulaires
Remove bootstrap forms loading
2019-01-07 16:43:46 +01:00
Ludovic Stephan f66a54bb73 Prettify revente/manage 2019-01-07 16:24:30 +01:00
Ludovic Stephan 010ce0df3e Bugfixes : add staticfiles and typo 2019-01-07 15:27:41 +01:00
Ludovic Stephan 519ef9dc20 Fix concurrency issues
Creating form fields in the class and modifiying them dynamically can
cause concurrency issues because the form class is shared between tabs.
2019-01-07 14:59:20 +01:00
Ludovic Stephan 5c8164dd3b Prettify revente/tirages 2018-12-07 17:35:40 +01:00
Ludovic Stephan 625825cf3f Améliore TemplateLabelField
- Rajouter une option pour `option_template_name` et `context_object_name` dans la classe, et documente mieux. Répercute ces changements dans `InscriptionReventeForm`.
2018-12-07 17:33:17 +01:00
Ludovic Stephan dbd017f680 Prettify revente/subscribe 2018-11-21 19:47:20 +01:00
Martin Pépin 1f350d60dd Merge branch 'master' into Aufinal/annul_reventes 2018-10-07 00:34:36 +02:00
Aurélien Delobelle fdd2b35289 core -- Apply black + isort to all files 2018-10-06 13:15:33 +02:00
Martin Pépin ea737dab29 Merge branch 'Kerl/drop_py2_compat' of git.eleves.ens.fr:cof-geek/gestioCOF into Kerl/drop_py2_compat 2018-04-16 14:18:21 +02:00
Martin Pépin a73736bf41 Merge branch 'master' into Kerl/drop_py2_compat 2018-04-16 14:12:36 +02:00
Ludovic Stephan fc37c5a8a0 Annulation des reventes
- On peut annuler des reventes à tout point du processus
- Le formulaire d'annulation donne plus d'informations
2018-04-13 10:54:45 +02:00
Aurélien Delobelle 42e762bc4a Py3 allows to shorten super() 2018-01-16 16:50:27 +01:00
Martin Pépin 475f1adec5 Remove "coding: utf8" line 2018-01-06 16:10:13 +01:00
Ludovic Stephan 1783196a9c Management view only deals with Revente objects
Except for Revente creation, every form is now handled with revente
objects, to use the display option in the previous commit.
2017-12-19 12:41:50 +01:00
Ludovic Stephan f1bbade002 Better labels for revente objects
The label for the ReventeModelMultipleChoiceField now depends on a
`own` parameter, which determines if we display the seller or the
buyer's name.
2017-12-19 12:40:50 +01:00
Ludovic Stephan 785555c05c Misc fixes 2017-10-26 12:40:11 +02:00
Ludovic Stephan 6a6549e0d7 Add notif time
In case of a gestioCOF bug, we keep the notification time in memory to
still do the drawing 1-3 days after.
2017-10-23 20:55:01 +02:00
Ludovic Stephan 732e47707e Add unsubscribe option + list of current draws 2017-10-23 17:25:58 +02:00
Aurélien Delobelle 0d8a613f28 improve bda inscription form/view code 2017-04-21 18:22:53 +02:00
Aurélien Delobelle 3556e3b1b0 Fewer requests on bda.views.revente 2017-04-08 12:10:23 +02:00
Aurélien Delobelle 3e0bd2e758 Fewer db requests on bda views.
bda.views.etat_places
- Use select_related on spectacles_set,  avoid query issue for each spectacle.
- `slots__sum` is computed in view, instead of a query.
- Cleaner code (and avoid useless computations).

bda.views.places
- Add select_related on places, avoid query issue for each spectacle.

bda.views.inscription
- 1 query for spectacle field choices, instead of (#forms in formset *
  #spectacles)
- Delete BaseBdaFormSet. The validation was redundant with
  `unique_together` of ChoixSpectacle model.
2017-04-07 13:25:50 +02:00
Ludovic Stephan 42a93027d3 fix pep8 + move template 2017-02-21 19:49:29 -03:00
Ludovic Stephan d524d9286f better annulation check 2017-02-16 02:28:57 -02:00
Ludovic Stephan d9402e1059 change resell and reinit forms 2017-02-16 01:52:44 -02:00
Martin Pépin 298015285a cleanup et nouvelle implem de custommail 2016-12-22 20:18:27 +01:00
Ludovic Stephan 9bbc9e934d change soldTo functioning 2016-12-21 00:47:36 -02:00
Ludovic Stephan 7ec6d23987 fix reinit 2016-10-06 14:26:47 +02:00
Ludovic Stephan f679338910 scrap buying many resells 2016-09-19 16:08:12 +02:00
Ludovic Stephan 2a56f8e255 buy more than one place 2016-09-11 13:32:38 +02:00
Ludovic Stephan de522a0035 fixes + deprecated migration 2016-09-05 02:38:46 +02:00
Ludovic Stephan 3bc9880db1 revente de revente + confirmation de transfert de places 2016-09-05 02:29:49 +02:00
Ludovic Stephan 460a135fa5 use forms 2016-07-27 13:08:00 +02:00
Ludovic Stephan d12a21d44c use forms 2016-07-25 23:03:33 +02:00
Basile Clement 210c6d7712 Update Py3 compat 2016-07-15 00:20:08 +02:00
xapantu 4c32ba6307 assumons le pep8 2016-07-14 23:43:10 +02:00
Martin Pépin b3c45afb49 Passage à python 3 - strings 2016-07-14 23:40:51 +02:00
Théophile Bastian 6d68f6638f PEP8: few more changes
Taken MR comments into account:
* `and` is considered a binary operator, thus put at the beginning of the line when splitting a line,
* same for `+`,
* same for `.` (different reasons).
2016-07-09 22:59:51 +01:00
Théophile Bastian 88bccc0e60 PEP8: Enforced other rules, including 80 cols 2016-07-09 21:39:11 +01:00
Théophile Bastian c7a3656ded PEP8: fixed ' = ' → '=' on parameters
'unexpected spaces around keyword / parameter equals'
2016-07-09 20:19:37 +01:00
Basile Clement 3229441cb7 Nettoyage de code
Essentiellement, suppression d'import inutilisés.
2016-06-10 23:59:41 +02:00
Martin Pépin d905309793 Mise en forme
Formatage 80 colonnes et, suppression des espaces autour des signes `=`
dans les arguments nommés et suppression d'un import inutile.
2016-06-05 02:16:14 +02:00
Martin Pépin 65667f6652 Déplace les formulaires vers des forms.py
Les formulaires de chaque application sont désormais dans un fichier `forms.py`.
2016-06-03 00:47:50 +02:00