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