Commit graph

77 commits

Author SHA1 Message Date
Tom Hubrecht 892bf51163 Run black on all files 2023-05-19 14:57:48 +02:00
Martin Pépin 49fde85187
Admin: on utilise la recherche builtin de Django 2020-12-04 19:33:17 +01:00
Ludovic Stephan f88795a60e Use same qset for every field 2020-10-22 19:34:59 +02:00
Ludovic Stephan 147b8514ef Limite les select au tirage concerné 2020-10-21 18:22:48 +02:00
Ludovic Stephan f364928004 Remove custommail in bda 2020-09-15 11:49:05 +02:00
Ludovic Stephan 0875ef1278 Black v20 2020-08-28 18:00:54 +02:00
Ludovic Stephan 4f15b820a5 Use manager from queryset 2019-06-17 21:36:09 +02:00
Ludovic Stephan ba5aa6da5f Remove useless local variable 2019-06-17 21:12:03 +02:00
Ludovic Stephan fa98bb34bd Adapte l'interface admin 2019-06-08 15:33:09 +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
Aurélien Delobelle 42e762bc4a Py3 allows to shorten super() 2018-01-16 16:50:27 +01:00
Martin Pépin 5a5b60ec4d Merge branch 'master' into Kerl/drop_py2_compat 2018-01-10 20:12:59 +01:00
Ludovic Stephan 501d592d2f Merge branch 'master' into Aufinal/bda_fixes 2018-01-10 20:00:34 +01:00
Martin Pépin 475f1adec5 Remove "coding: utf8" line 2018-01-06 16:10:13 +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