Commit graph

62 commits

Author SHA1 Message Date
Ludovic Stephan 501d592d2f Merge branch 'master' into Aufinal/bda_fixes 2018-01-10 20:00:34 +01:00
Ludovic Stephan 9a8773978c Use new method in admin 2017-12-19 12:50:20 +01:00
Aurélien Delobelle b0b0542407 Upgrade to Django 1.11
- Deprecation warnings using Django 1.8 are resolved.
- Deprecation warnings using Django 1.11 are resolved.

- Admin: grappelli is no longer used.
- Upgrade to django-autocomplete-light v3 (v2 is not 1.11 compatible).
  * autocomplete.modelform_factory being dropped, code uses dal Select2
    views and widgets.
2017-11-19 18:41:39 +01: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
Aurélien Delobelle d18fb86a98 Fix attribution inlines of participant in admin 2017-09-25 18:26:54 +02:00
Martin Pépin db512a97f6 In /admin: displays "given" when it's relevant 2017-09-25 14:22:46 +02:00
Aurélien Delobelle 6cdb791989 fix class name conflicts 2017-05-10 12:39:56 +02:00
Aurélien Delobelle ce70269e7b Fewer requests on create/update spectaclerevente in bda admin.
- O(#participant) -> O(1) requests
2017-04-08 17:50:36 +02:00
Aurélien Delobelle 0750551d7c Fewer requests on participant admin create and updateviews.
- Fewer requests on choicesreventes and tabular inlines (of
  attributions)
- User and tirage cannot be updated if updating a participant instance.
- Tabular inlines are fixed:
  - the one which is used for spectacles with listing only propose
    choices in spectacle with listing
  - same with the other (spectacles without listing)
- Still does too much request (because of tabularinlines)
2017-04-08 17:16:33 +02:00
Aurélien Delobelle 6451f971bd AttributionForm in bda admin
- New attribution form issue less queries
- Spectacle and Participant are readonly if updating an attribution.

ReadOnlyMixin allows to set readonly fields only while updating an
object.
2017-04-08 16:11:42 +02:00
Martin Pépin b39806e171 Migration et chargement des emails
- La migration qui supprime le vieux modèle gestioncof.CustomMail est
  ajoutée
- Les mails de GestioCOF sont dans un json qui est chargé par la commande
  `python manage.py syncmails`
  Voir l'aide de la commande pour plus 'information
2016-12-23 15:48:57 +01:00
Ludovic Stephan fa3ddd099f Merge branch 'master' of git.eleves.ens.fr:cof-geek/gestioCOF into Aufinal/clean_code 2016-11-14 12:52:35 -02:00
Ludovic Stephan a63269a4ce more coherent names 2016-11-14 12:52:02 -02:00
Ludovic Stephan 13f282a289 Merge branch 'master' of https://git.eleves.ens.fr/cof-geek/gestioCOF into Aufinal/clean_code 2016-11-12 21:48:03 -02:00
Ludovic Stephan 929672a2a9 check date admin 2016-11-08 10:41:12 -02:00
Martin Pépin 33545b028e Messages et docstrings
- Ajout d'un message à l'aide de `message_user` lorsque les actions sont
effectuées
- Ajouts de docstrings là où c'est préconisé par pylint.
2016-11-04 08:35:17 +01:00
Ludovic Stephan 8d1f599577 filter sold attributions 2016-10-28 14:15:37 -02:00
Ludovic Stephan 56a1f8e634 add transfer & reinit functions 2016-10-27 23:46:57 -02:00
Ludovic Stephan b15dc6d9dc Merge remote-tracking branch 'origin/master' into Aufinal/change_shotgun 2016-10-24 14:38:35 -02:00
Martin Pépin 36cd623105 Corrections des typos
- Ligne vide
- `lastname` -> `last_name`
- `firstname` -> `first_name`
- `spectacle__title` -> `attribution__spectacle__title`
2016-10-11 14:59:30 +02:00
Ludovic Stephan 4c6b33ccb4 change shotgun en booleanfield 2016-10-10 16:56:31 +02:00
Ludovic Stephan b249d61c2d fix recherche dans spectaclerevente 2016-10-07 23:49:55 +02:00
Ludovic Stephan b6655047ed verbose names 2016-09-05 03:10:06 +02:00
Ludovic Stephan dbd81ac625 Merge branch 'master' of https://git.eleves.ens.fr/cof-geek/gestioCOF into Aufinal/bda_revente 2016-09-03 01:39:33 +02:00
Martin Pépin ab4e7ec084 Ajout d'infos dans les spectacles
- Ajoute des informations supplémentaires au modèle `Spectacle`.
- Supprime le champ inutilisé `priority`.
- Utilise le champ inutilisé `slots_description`.
- Adapte le template `descriptions.html` et la vue admin à ces changements.
2016-08-26 05:28:04 +02:00
Ludovic Stephan 49afda933a model changes 2016-07-25 02:51:19 +02:00
Ludovic Stephan 6793194adc fix affichage admin 2016-07-23 22:21:30 +02:00
Ludovic Stephan f44b3fc33c creates initial models 2016-07-22 22:48:09 +02:00
Martin Pépin 6d613def4c Merge branch 'master' into Kerl/fix_32_do_tirage 2016-07-16 18:31:36 +02:00
Martin Pépin 87da29ee59 Merge branch 'master' into Kerl/fix_32_do_tirage 2016-07-15 01:25:11 +02:00
Basile Clement 210c6d7712 Update Py3 compat 2016-07-15 00:20:08 +02:00
Basile Clement 21b8b6042f Compatibilité python 3
Rend GestioCOF compatible avec python 3. En particulier, il s'agit de :

  - Utiliser la version "fonction" de `print` dans `sync_clipper` et
    `tirage_bda`, avec le `from __future__ import print_function` pour
    garder la compatibilité avec python 2

  - Utiliser de l'unicode par défaut, même en python 2, avec
    `from __future__ import unicode_literals` et le décorateur de
    compatibilité `python_2_unicode_compatible` de Django pour les
    modèles, comme décrit à
    https://docs.djangoproject.com/en/1.9/topics/python3/#str-and-unicode-methods

  - Utiliser `six.text_type` à la place de `unicode`

Fixes #2.
2016-07-14 23:40:31 +02:00
Martin Pépin 89590b88de Étend les champs de recherche dans l'admin
Fixes #24
2016-07-13 01:01:07 +02:00
Martin Pépin 3aa9667eb9 Merge branch 'master' into Kerl/fix_32_do_tirage 2016-07-10 14:42:09 +02:00
Martin Pépin 3bea20a52e GestioCOF mémorise la date d'envoi des rappels
Cela permet de demander une confirmation avant l'envoi dans la vue
correspondante quand les rappels ont déjà été envoyés.
2016-07-10 14:19:19 +02:00
Martin Pépin f6d3106110 Merge branch 'master' into Kerl/mails_rappel 2016-07-10 13:19:10 +02:00
Théophile Bastian 483ddf0f86 PEP8: Forgot a few binops 2016-07-09 23:26:02 +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
Martin Pépin d97708a2ee Merge branch 'master' into Kerl/mails_rappel 2016-07-08 21:53:21 +02:00
Martin Pépin 9e50a825e0 Ajoute un switch sur les tirages
Le switch permet d'autoriser/interdire le lancement d'un tirage. Il
s'agit d'une sécurité face aux erreurs d'inattention.

Le champ `token` du modèle `Tirage` devient `tokens` et stocke les
graines des tirages déjà lancés si le tirage est lancé plusieurs fois.
2016-07-08 00:38:36 +02:00
ludo dc02e9cd45 ajoute des filtres pour les voeux et spectacles 2016-06-27 13:18:58 +02:00
ludo 442f358cf5 Ajoute une vérification de tirage 2016-06-25 23:17:31 +02:00
Martin Pépin e318474567 Merge branch 'master' into Kerl/mails_rappel 2016-06-22 02:09:45 +02:00
Martin Pépin 25fc2579f0 Incorpore le tirage dans admin/participant.
- Affiche le tirage de chaque participant.
- Permet de filtrer par tirage
2016-06-19 18:34:44 +02:00
Martin Pépin 4abf3a5f19 Merge branch 'master' into Kerl/mails_rappel 2016-06-12 21:28:51 +02:00
Martin Pépin 1c4cf9a7ea Merge branch 'master' into Kerl/mails_rappel 2016-06-11 00:28:00 +02:00
Basile Clement 3229441cb7 Nettoyage de code
Essentiellement, suppression d'import inutilisés.
2016-06-10 23:59:41 +02:00
Basile Clement 3651bb1946 Merge branch 'Kerl/enhance_admin_tirage' into 'master'
Customise la vue Tirage dans admin

Ce patch rend la vue admin des tirages plus fonctionnelle.

On ajoute des infos les infos suivantes sur la liste des tirages :
- Titre
- Ouverture
- Fermeture
- Tirage actif

On permet la recherche sur le champ titre.

On empêche l'édition de la graine du tirage (`token`). Il s'agit d'une
archive et ne doit pas être modifiée.

See merge request !32
2016-06-10 23:07:08 +02:00
Qwann 7a8e27d0a3 affiche maintenant le prix dans dans l'interface admin, quand on clique sur un particpant 2016-06-10 18:01:03 +02:00