Basile Clement
5f9695ef8e
isort
2018-11-25 18:32:04 +01:00
Basile Clement
2e08951d44
Améliore l'ergonomie de cof_required
et buro_required
...
Ce patch rend les décorateurs `cof_required` et `buro_required` plus
agréables pour les utilisateurs; en particulier, ils ne font plus une
redirection sur la page de connexion si la condition n'est pas remplie.
Dans les deux cas :
- Si l'utilisateur n'est pas connecté, il est renvoyé sur la page de
connexion
- Si l'utilisateur est connecté mais pas membre du COF/du Burô, une
page d'erreur "403 Forbidden" est affichée. Dans le cas de
`cof_required` cette page demande à l'utilisateur de s'inscrire au
COF; dans le cas `buro_required` elle indique simplement que la page
est réservée au Burô.
gestioncof/
* gestioncof/templates/buro-denied.html: Ajouté.
* decorators.py:
bda/
* tests/test_views.py:
Modifié pour correctement gérer le nouveau fonctionnement des
décorateurs.
2018-11-25 18:11:23 +01:00
Basile Clement
4e34583e3f
black
2018-11-25 00:23:43 +01:00
Basile Clement
d48cb3aaed
petitcours.tests -- Deplace les tests dans leur propre fichier
2018-11-25 00:22:12 +01:00
Aurélien Delobelle
0fe63d3eae
petitcours.tests -- Add tests for demande (raw) views
2018-10-27 22:29:55 +02:00
Aurélien Delobelle
3d27dc9a41
petitcours.tests -- Add tests for inscription and (re)traitement views
2018-10-27 19:18:58 +02:00
Aurélien Delobelle
1a5bbf32a4
petitcours.tests -- Add tests for demandes list and details views
2018-10-27 19:18:58 +02:00
Aurélien Delobelle
25dfe2f496
petitcours.tests -- Add PCAbility, PCDemande and PCSubject factories
2018-10-27 19:18:58 +02:00
Aurélien Delobelle
8be913cbf9
style -- black
2018-10-27 13:37:39 +02:00
Martin Pépin
9da9649a45
Use the syncmail command as defined in custommail
2018-10-07 00:55:54 +02:00
Aurélien Delobelle
402b544393
core -- Fix flake8 errors
2018-10-06 13:15:33 +02:00
Aurélien Delobelle
fdd2b35289
core -- Apply black + isort to all files
2018-10-06 13:15:33 +02:00
Martin Pepin
b39b6d6bb3
Merge branch 'aureplop/cof-tests_registration' into 'master'
...
cof -- Add tests for registration views
See merge request cof-geek/gestioCOF!287
2018-10-06 11:25:44 +02:00
Aurélien Delobelle
3eb939928f
Merge branch 'master' into Kerl/tests
2018-09-30 13:08:58 +02:00
Aurélien Delobelle
10f4bd02d5
Merge branch 'master' into aureplop/cof-tests_registration
2018-09-30 12:57:35 +02:00
Aurélien Delobelle
064c23902b
cof.tests -- Address flake8 concerns
2018-09-30 12:56:58 +02:00
Aurélien Delobelle
44e5387f15
cof.tests -- Really check initial of built form
2018-09-30 12:56:36 +02:00
Martin Pépin
f297a1a0cf
update hardcoded Mega views for 2018…
2018-09-09 07:20:18 +02:00
Martin Pépin
327ef210db
make unernestaparis visible in forms
2018-09-02 23:26:18 +02:00
Martin Pépin
73cf39baa8
missing migration
2018-09-02 23:25:58 +02:00
Theo Delemazure
91393dcea7
Update models.py
2018-09-02 20:34:09 +02:00
Martin Pépin
898a354c2d
Members can change their registration email
2018-08-05 18:11:10 +02:00
Martin Pépin
68e71317cb
Hotfix: broken urls for mailing lists
2018-06-01 17:08:24 +02:00
Martin Pépin
7e9df3fc72
hotfix: wrong url name
2018-05-28 00:09:30 +02:00
Aurélien Delobelle
ece9a54df3
Upgrade to reCAPTCHA v2
...
reCAPTCHA v1 has been shut down since March 2018.
We now uses reCAPTCHA v2:
- user must check a simple checkbox (No CAPTCHA),
- eventually he must validate a challenge.
Moving keys settings allows to use the captcha for development.
Fixes #192 .
2018-05-14 13:22:59 +02:00
Martin Pépin
e21666a112
Fix old-style urls (registration)
2018-04-16 16:34:34 +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
Martin Pépin
87a6722143
Merge branch 'master' into Aufinal/bda_fixes
2018-04-07 14:46:07 +02:00
Martin Pépin
7512454825
Merge branch 'master' into aureplop/cof-tests_registration
2018-04-07 13:20:33 +02:00
Martin Pépin
71a61fe31d
Merge branch 'master' into aureplop/cof-tests_misc
2018-04-07 12:41:42 +02:00
Martin Pépin
6328cdaa19
Tests: the order of our csv files is not relevant
2018-04-07 12:05:16 +02:00
Martin Pépin
ee33762845
Merge branch 'master' into aureplop/cof-tests_export
2018-04-07 11:24:05 +02:00
Martin Pépin
660f395b67
Merge branch 'master' into aureplop/cof-tests_club
2018-04-07 10:49:52 +02:00
Martin Pépin
60d8e76fee
Merge branch 'master' into aureplop/cof-tests_calendar
2018-04-07 10:24:41 +02:00
Martin Pépin
623047dca2
Fix old-style reversal of calendar urls
2018-04-06 11:11:02 +02:00
Martin Pépin
bf464f9378
Merge branch 'master' into aureplop/cof-tests_event
2018-04-06 00:16:08 +02:00
Basile Clement
3314670cab
Various fixes for Django 1.11
...
- The {% cycle %} command was used non-quoted arguments separated by
commas, while it is supposed to use quoted arguments separated by
spaces (I'm actually not sure how that ever worked :)
- django-bootstrap-form was at version 3.2.1 which is not compatible
with Django 1.11 (but also required by GestioCOF). I upgraded it to
version 3.3.
2018-02-11 19:09:07 +01:00
Martin Pepin
8f0eec0e88
Merge branch 'aureplop/cof-tests_survey' into 'master'
...
cof -- Add tests for survey views
See merge request cof-geek/gestioCOF!285
2018-02-06 13:48:46 +01:00
Aurélien Delobelle
afa6972280
Better handling of non-authorized users in config edition view
2018-01-22 21:59:41 +01:00
Aurélien Delobelle
0235c4f7e8
Fix profile edition view
...
- Fix a typo.
- Bump version of django-bootstrap-form to be comaptible with Django
1.11.
2018-01-22 21:59:41 +01:00
Aurélien Delobelle
f8361b9114
Add & fix urls naming
2018-01-22 21:59:41 +01:00
Aurélien Delobelle
0876a004e5
Name urls of export views (cof members, mega)
2018-01-22 21:59:41 +01:00
Aurélien Delobelle
91162addb9
cof -- Add tests for some views
2018-01-22 21:59:41 +01:00
Aurélien Delobelle
bd89dce11d
Add testing helpers to create superuser
2018-01-22 21:38:01 +01:00
Aurélien Delobelle
a813507ddd
Name urls of export views (cof members, mega)
2018-01-22 14:59:57 +01:00
Aurélien Delobelle
f371606cdb
cof -- Add tests for export views
2018-01-22 14:58:38 +01:00
Aurélien Delobelle
38539a9d53
Name url to export calendar to ical
2018-01-21 18:19:43 +01:00
Aurélien Delobelle
acf284862a
Users should be able to refuse to subscribe to shows and events
2018-01-21 18:17:27 +01:00
Aurélien Delobelle
2e6a54c7db
cof -- Add tests for calendar views
2018-01-21 18:17:26 +01:00