2126224e15
Merge pull request 'Thubrecht/daphne' ( #815 ) from thubrecht/daphne into master
...
Reviewed-on: #815
2024-07-30 18:40:56 +02:00
d6109a9312
dev: update requirements and directly read the files
2024-07-12 14:54:14 +02:00
a69bd0426f
kfet/open: Add comment to test
2024-07-12 14:54:14 +02:00
81a4dbef7c
dev: set explicitely DJANGO_SETTINGS_MODULE
2024-07-12 14:54:14 +02:00
4fedf3453d
kfet: remove redundant static tag
2024-07-12 14:54:14 +02:00
8607d77c84
dev: update requirements
2024-07-12 14:54:14 +02:00
bc55a3067e
Remove useless migrations
2024-07-12 14:54:14 +02:00
dd68ad91cd
Update django-hCaptcha
2024-07-12 14:54:14 +02:00
2f71246509
assertDictContainsSubset is deprecated
2024-07-12 14:54:14 +02:00
a20a1c11d6
Explicitely set transform=repr in assertQuerysetEquals
2024-07-12 14:54:14 +02:00
0e1ff1765a
assertEquals is deprecated
2024-07-12 14:54:14 +02:00
177d413f4c
Use AutoField instead of BigAutoField
2024-07-12 14:54:14 +02:00
01dd16c795
url -> re_path
2024-07-12 14:54:14 +02:00
84c87c1b4b
Replace unique_together by UniqueConstraint
2024-07-12 14:54:14 +02:00
1b143b322f
Update changelog
2024-07-12 14:54:14 +02:00
f9456e3c29
cof has been renamed to gestioasso
2024-07-12 14:54:14 +02:00
dd1350f1c2
Fix typo
2024-07-12 14:54:14 +02:00
8f4cb68d31
Only run kf tests in sequential mode (to fix issues with channels)
2024-07-12 14:54:14 +02:00
3a3f96a8df
Try not running tests in parallel
2024-07-12 14:54:14 +02:00
7d8926e459
Try to flush old messages in tests
2024-07-12 14:54:14 +02:00
3fee014384
Update kfet.open tests
2024-07-12 14:54:14 +02:00
cd351786bb
Remove default_app_config
2024-07-12 14:54:14 +02:00
7362c2fa2a
Update django-djconfig
2024-07-12 14:54:14 +02:00
efbc947145
Change backend name as the old one is deprecated
2024-07-12 14:54:14 +02:00
0c45262fbc
ugettext -> gettext
2024-07-12 14:54:14 +02:00
cabd277b4a
Update redis, and implement a custom channel layer to send datetime/decimal objects
2024-07-12 14:54:14 +02:00
4108efe8c9
Fix kfet.ope tests
2024-07-12 14:54:14 +02:00
693e4252d5
Fix kpsul tests
2024-07-12 14:54:14 +02:00
3aa928e8f0
Simplify group_send for kpsul
2024-07-12 14:54:14 +02:00
5e2e68960b
Channels 3
2024-07-12 14:54:14 +02:00
91e9beee11
Add default django asgi handler
2024-07-12 14:54:14 +02:00
ac286209ed
Fix app import
2024-07-12 14:54:14 +02:00
b03cda5962
keyOrder is deprecated, using a list in Meta gives the correct order
2024-07-12 14:54:14 +02:00
4feb567af7
Update django-redis-cache and fix vagrant setup
2024-07-12 14:54:14 +02:00
1ac47885d0
Update django version
2024-07-12 14:54:14 +02:00
071c810605
Update base consumers
2024-07-12 14:54:14 +02:00
7f00ce0ff1
Add default http router
2024-07-12 14:54:14 +02:00
95136cb4eb
Update daphne version
2024-07-12 14:54:14 +02:00
e299997aa8
Update to django channels 2
2024-07-12 14:54:14 +02:00
40f34926bb
Fix vagrant setup w/ daphne
2024-07-12 14:54:14 +02:00
69976a878a
Merge pull request 'Envoi de mail lors de la création d'un trigramme' ( #833 ) from agroudiev/mail-creation-trigramme into master
...
Reviewed-on: #833
2024-07-06 16:54:25 +02:00
6621ae3950
style(kfet): suppression de return
2024-07-06 16:49:35 +02:00
9288daaf9e
feat(kfet): envoi de mail lors de la création d'un trigramme
2024-07-06 12:14:49 +02:00
e92c500940
feat(shell.nix): Switch to python 3.9
2024-02-11 19:59:29 +01:00
Tom Hubrecht
d75eaf583f
Merge branch 'master' into 'master'
...
Modification du délai pour l'indicateur K-Fêt ouverte
See merge request klub-dev-ens/gestioCOF!529
2023-12-10 10:11:33 +01:00
55bd3ab51d
Modification du délai du websocket
2023-12-08 21:17:53 +01:00
Tom Hubrecht
f640a25f59
Merge branch 'petitcours-template-tweak' into 'master'
...
[petitcours] Tweak `eleve.txt` template
See merge request klub-dev-ens/gestioCOF!528
2023-10-03 15:20:40 +02:00
Leo Lanteri--Thauvin
f881c7cd8b
[petitcours] Tweak eleve.txt
template
2023-09-11 16:44:45 +02:00
b548b87c25
Version 0.15.1 et Changelog
2023-06-15 13:52:53 +02:00
Tom Hubrecht
a72302291f
Merge branch 'send_neg' into 'master'
...
feat(kfet): Change l'adresse utilisée pour envoyer les mails de négatif
See merge request klub-dev-ens/gestioCOF!526
2023-06-15 13:33:44 +02:00
a0bde75f50
feat(kfet): Change l'adresse utilisée pour envoyer les mails de négatif
2023-06-15 13:03:54 +02:00
Tom Hubrecht
44b19c12e5
Merge branch 'send_neg' into 'master'
...
fix(kfet): Récupère lors d'une erreur due à smtplib
See merge request klub-dev-ens/gestioCOF!525
2023-06-15 10:48:23 +02:00
f97d339a1c
fix(kfet): Récupère lors d'une erreur due à smtplib
2023-06-14 20:56:25 +02:00
Tom Hubrecht
094116e88d
Merge branch 'thubrecht/date-adhesion' into 'master'
...
Rajout de la date d'adhésion sur les profils COF
Closes #303
See merge request klub-dev-ens/gestioCOF!521
2023-05-26 09:31:45 +02:00
b32a07fc22
Version 0.15 et mise à jour du Changelog
2023-05-22 20:42:23 +02:00
Tom Hubrecht
4fc9902cf6
Merge branch 'thubrecht/contact-soiree' into 'master'
...
feat(kfet): Ajout d'un formulaire de demande de soirée
See merge request klub-dev-ens/gestioCOF!523
2023-05-22 20:37:38 +02:00
7164cfa37a
feat(kfet): Ajout d'un formulaire de demande de soirée
2023-05-22 20:30:05 +02:00
Tom Hubrecht
90f96fb5c9
Merge branch 'thubrecht/contact' into 'master'
...
feat(kfet): Ajoute un formulaire de contact
Closes #302
See merge request klub-dev-ens/gestioCOF!520
2023-05-22 19:06:26 +02:00
e50249355d
feat(kfet): Ajoute un formulaire de contact
2023-05-22 18:59:46 +02:00
Tom Hubrecht
c304d734d9
Merge branch 'thubrecht/comptes-inactifs' into 'master'
...
feat(kfet): Désactive l'envoi des mails pour les comptes gelés
See merge request klub-dev-ens/gestioCOF!522
2023-05-22 18:34:51 +02:00
c36dd30bce
fix(kfet): Affiche la bonne information
2023-05-22 18:26:24 +02:00
2571cc955e
feat(kfet): Désactive l'envoi des mails pour les comptes gelés
...
On utilise la fonctionnalité `is_frozen` pour marquer les comptes qui n'ont plus d'adresse valide, et on répare le formulaire de màj de compte.
2023-05-22 18:23:50 +02:00
3eaac5c68f
feat(cof): Rajoute la date d'adhésion dans les profils
2023-05-22 11:28:23 +02:00
af4c8e0744
Update shell.nix and use django-types
2023-05-22 10:57:11 +02:00
14e0a3ef0a
Version 0.14 et mise à jour du changelog
2023-05-19 20:18:11 +02:00
Tom Hubrecht
83078d4726
Merge branch 'thubrecht/date-js' into 'master'
...
Thubrecht/date js
See merge request klub-dev-ens/gestioCOF!518
2023-05-19 17:34:27 +02:00
cb262ad479
fix(kfet): Update timezone data for moment.js
2023-05-19 16:45:15 +02:00
5c47118834
Update gitignore and shell.nix
2023-05-19 15:14:55 +02:00
30e842ce80
shell.nix: Update to use virtualenv
2023-05-19 14:59:19 +02:00
892bf51163
Run black on all files
2023-05-19 14:57:48 +02:00
e20d7ca6c2
requirements: Fix required versions
2023-05-19 14:43:25 +02:00
Tom Hubrecht
1b09293206
Version 0.13 && Update changelog
2023-02-19 10:32:47 +01:00
Tom Hubrecht
e7da476697
Merge branch 'thubrecht/surnom' into 'master'
...
Rend le surnom lisible par la personne
Closes #297
See merge request klub-dev-ens/gestioCOF!506
2023-01-31 17:06:28 +01:00
Tom Hubrecht
761ab6df90
Merge branch '_aandres/inventory_sum_amounts' into 'master'
...
Affiche les montants des valeurs des stocks sur l'affichage d'un inventaire
See merge request klub-dev-ens/gestioCOF!515
2023-01-28 15:34:56 +01:00
Tom Hubrecht
a8d4035d33
Merge branch 'thubrecht/rappels_negatifs' into 'master'
...
On n'envoie des mails de rappel que lorsque le négatif est toujours d'actualité
Closes #298
See merge request klub-dev-ens/gestioCOF!509
2023-01-28 15:33:23 +01:00
b80426c56f
feat(kfet): message info about prices
2023-01-28 15:28:54 +01:00
429e611daa
feat(kfet): more values and formatting
2023-01-28 15:28:54 +01:00
Tom Hubrecht
5160da7862
Merge branch '292_fix_cancel_js' into 'master'
...
fix(kfet): fix js error when cancelling already canceled operation
Closes #292
See merge request klub-dev-ens/gestioCOF!516
2023-01-28 15:20:53 +01:00
aad3775222
fix(kfet): fix js error when cancelling already canceled operation
2023-01-28 15:13:55 +01:00
4b92716092
feat: poc inventory amount value
...
and lint
2023-01-23 21:53:46 +01:00
dfa5b4bf69
changelog: add current date
2022-10-03 18:37:41 +02:00
Tom Hubrecht
1be5dcb6af
Merge branch 'thubrecht/kfetcms-css' into 'master'
...
kfetcms: Update the fixtures and fix the navbar behaviour due to a longer menu
See merge request klub-dev-ens/gestioCOF!513
2022-10-03 10:54:37 +02:00
a891ec56a6
dev: add nixos setup
2022-10-03 10:34:06 +02:00
7a52690a63
kfet: fix pipeline
2022-10-03 10:33:29 +02:00
a2f396ce7a
Changelog: Update
2022-10-03 10:33:04 +02:00
85e30056a6
kfetcms: Update the fixtures and fix the navbar behaviour due to a longer menu
2022-10-03 10:22:32 +02:00
Tom Hubrecht
69de48f285
Version 0.12
2022-06-17 21:45:34 +02:00
Tom Hubrecht
eba36f2712
Merge branch 'dodo/kfet-history-limit-exceptions' into 'master'
...
Dodo/kfet history limit exceptions
See merge request klub-dev-ens/gestioCOF!508
2022-05-20 12:08:59 +02:00
Dorian Lesbre
bfdb34aae7
Dodo/kfet history limit exceptions
2022-05-20 12:08:59 +02:00
fcf2002cd7
On n'affiche le négatif que s'il existe vraiment
2022-01-11 18:10:00 +01:00
b236d6a950
Si last_rappel vaut None il n'est pas inclus dans le __lt
2022-01-11 18:10:00 +01:00
4b29097f02
On sauvegarde la date de fin du négatif
2022-01-11 18:10:00 +01:00
87f383bef1
On n'envoie des mails de rappel que lorsque le négatif est toujours d'actualité
2022-01-11 18:10:00 +01:00
Tom Hubrecht
1ad025e046
Merge branch 'dodo/fix_stat_labels' into 'master'
...
Dodo/fix stat labels
Closes #296
See merge request klub-dev-ens/gestioCOF!510
2022-01-07 11:07:51 +01:00
Dorian Lesbre
b3c047738a
Ajout accent K-Fêt
2022-01-06 16:00:26 +01:00
Dorian Lesbre
17a9ae3302
Update CHANGELOG
2022-01-05 10:50:45 +01:00
Dorian Lesbre
e41bcbb6d7
Removed duplicate import to please flake8
2022-01-05 10:48:04 +01:00
Dorian Lesbre
e384bfb0f3
Fix issue #296
2022-01-05 10:45:32 +01:00
373ff1f62c
Rend le surnom lisible par la personne
2021-11-25 14:44:40 +01:00
Martin Pepin
65eb95a3c9
Merge branch 'thubrecht/bds-membres' into 'master'
...
Réinitialisation des adhésions
Closes #294
See merge request klub-dev-ens/gestioCOF!503
2021-10-27 14:33:18 +02:00
Martin Pépin
1c880b265e
Version 1.11
2021-10-26 19:49:05 +02:00
Martin Pépin
75fbdc7efb
CHANGELOG: todo prod: faire un compte hcaptcha
2021-10-26 19:47:38 +02:00
1b8dd971b0
Ajoute un mécanisme de réinitialisation des adhésions
2021-10-26 10:26:22 +02:00
713d686047
Corrige l'affichage de la date dans le formulaire
2021-10-26 09:24:44 +02:00
Martin Pepin
77aa269c90
Merge branch 'Mails_rappel_kfet' into 'master'
...
Reminder mails for negative K-Psul accounts
See merge request klub-dev-ens/gestioCOF!492
2021-10-22 22:44:55 +02:00
Martin Pépin
9a143521d5
Update changelog
2021-10-22 22:37:56 +02:00
Martin Pépin
a77cf59b18
Rappels négatifs K-Fêt: ajustements cosmétiques
2021-10-22 22:36:30 +02:00
Alseidon
d8cabda678
First draft of reminder mail for negative K-Psul accounts
2021-10-22 21:29:34 +02:00
Martin Pépin
f086140dad
Update changelog
2021-10-22 21:12:16 +02:00
Martin Pepin
4d1ae8f540
Merge branch 'thubrecht/embed' into 'master'
...
On utilise |richtext pour les champs RichText, ce qui permet de bien faire les rendus
Closes #274
See merge request klub-dev-ens/gestioCOF!500
2021-10-22 21:04:20 +02:00
Ludovic Stephan
6d824a58be
Merge branch 'thubrecht/ordre-consos' into 'master'
...
Corrige le tri des articles dans K-Psul
See merge request klub-dev-ens/gestioCOF!502
2021-10-12 16:05:26 +02:00
20880114aa
Corrige le tri des articles dans K-Psul
2021-10-12 15:57:09 +02:00
Ludovic Stephan
df180d7446
Merge branch 'thubrecht/promo' into 'master'
...
Déplace le choix de la promo dans le formulaire
Closes #215
See merge request klub-dev-ens/gestioCOF!501
2021-07-01 09:03:47 +00:00
ef1793a348
Avec une seule majuscule
2021-07-01 10:29:54 +02:00
2d677b2093
Utilise des callables pour les choix
2021-07-01 10:29:14 +02:00
f70eacfc37
Déplace le choix de la promo dans le formulaire
2021-06-27 00:23:49 +02:00
264a0a852f
On utilise |richtext pour les champs RichText, ce qui permet de bien faire les rendus
2021-06-26 22:52:23 +02:00
7ca7f7298a
Update CHANGELOG
2021-06-17 21:28:08 +02:00
Tom Hubrecht
a5c822e7f7
Merge branch 'Aufinal/remove_negative' into 'master'
...
Fonctionnement du négatif + erreurs de K-Psul
Closes #279
See merge request klub-dev-ens/gestioCOF!494
2021-06-17 19:22:14 +00:00
Ludovic Stephan
6b316c482b
Remove obsolete section
2021-06-17 17:22:17 +02:00
Ludovic Stephan
4060730ec5
Remove logging
2021-06-17 10:49:35 +02:00
Ludovic Stephan
c6cfc311e0
CHANGELOG
2021-06-17 10:45:53 +02:00
Ludovic Stephan
4326ba9016
Oublis de renaming
2021-06-17 10:42:15 +02:00
Ludovic Stephan
4205e0ad0e
Tests
2021-06-17 10:42:15 +02:00
Ludovic Stephan
964eec6ab1
Adapte le JS aux nouvelles erreurs
2021-06-17 10:42:13 +02:00
Ludovic Stephan
29236e0b0e
Nouvelle gestion des erreurs JSON
2021-06-17 10:40:51 +02:00
Ludovic Stephan
1939a54fef
Tests du nouveau comportement
2021-06-17 10:40:51 +02:00
Ludovic Stephan
348881d207
Migration
2021-06-17 10:40:51 +02:00
Ludovic Stephan
ef8c1b8bf2
Nouveau fonctionnement des négatifs
2021-06-17 10:40:51 +02:00
Tom Hubrecht
8743301105
Merge branch 'Aufinal/let_it_go' into 'master'
...
Change le fonctionnement du gel de compte
Closes #280
See merge request klub-dev-ens/gestioCOF!493
2021-06-15 15:24:44 +00:00
Ludovic Stephan
6a11139588
Fix tests
2021-06-15 16:52:56 +02:00
Ludovic Stephan
a34b83c236
Use backend to enforce frozen accounts
2021-06-15 16:52:50 +02:00
Ludovic Stephan
02584982f6
gnagnagna
2021-06-15 14:48:35 +02:00
Ludovic Stephan
7bf0c5f09e
Fix frozen forms
2021-06-15 14:07:43 +02:00
Ludovic Stephan
b9aaf6a19c
Fix test
2021-06-15 14:07:43 +02:00
Ludovic Stephan
16dee0c143
Remove print
2021-06-15 14:07:43 +02:00
Ludovic Stephan
a947b9d3f2
Fix decorator
2021-06-15 14:07:43 +02:00
Ludovic Stephan
93d283fecb
Remove unused permission
2021-06-15 14:07:43 +02:00
Ludovic Stephan
63738e8e02
Frozen error display
2021-06-15 14:07:40 +02:00
Ludovic Stephan
1e44550e12
New frozen function
2021-06-15 14:05:39 +02:00
Ludovic Stephan
4136cb6868
Unfreeze every account
2021-06-15 14:05:39 +02:00
Ludovic Stephan
99809209e0
Change les permissions pour geler/dégeler un compte
2021-06-15 14:05:39 +02:00
Ludovic Stephan
0351f6728b
CHANGELOG
2021-05-05 02:10:44 +02:00
Ludovic Stephan
7efc7e6b94
Merge branch 'thubrecht/autocomplete-css' into 'master'
...
On modifie le curseur quand on survole un compte dans l'autocomplete
See merge request klub-dev-ens/gestioCOF!499
2021-05-05 00:06:15 +00:00
7d21a5a1fc
On supprime des sélecteurs inutiles
2021-05-05 01:57:46 +02:00
dba785bf13
Pareil, mais dans gestiocof
2021-05-05 00:59:47 +02:00
71878caf2c
On modifie le curseur quand on survole un compte dans l'autocomplete
2021-05-05 00:03:52 +02:00
Tom Hubrecht
db42028228
Merge branch 'Aufinal/backbone' into 'master'
...
Refactor le JS de K-Psul via Backbone : 2e étape
Closes #267 and #290
See merge request klub-dev-ens/gestioCOF!400
2021-05-04 21:17:09 +00:00
Ludovic Stephan
7171a7567c
Remove double negative
2021-05-04 21:43:48 +02:00
Ludovic Stephan
339223bec0
Black
2021-05-04 18:12:47 +02:00
Ludovic Stephan
d62a8d61de
Search fix and CSS update
2021-05-04 17:52:13 +02:00
Ludovic Stephan
f6c83dc692
FINALLY fix this f***ing whitespace mess
2021-05-04 17:52:13 +02:00
Ludovic Stephan
a984d1fd6f
Clarity
2021-05-04 17:52:13 +02:00
Ludovic Stephan
f901ea9396
Remove useless kpsul.html code
2021-05-04 17:52:13 +02:00
Ludovic Stephan
17d96f1775
New account manager logic
2021-05-04 17:52:13 +02:00
Ludovic Stephan
c10e5fe45c
Refactor Account model a bit
2021-05-04 17:52:13 +02:00
Martin Pépin
9bbe3f50cb
Update CHANGELOG.md
2021-04-18 18:17:38 +02:00
Martin Pépin
1f4a4ec76f
Update CHANGELOG.md
2021-04-18 17:46:54 +02:00
Martin Pepin
2befa584aa
Merge branch 'Aufinal/remove_24' into 'master'
...
Remove limit for purchases
Closes #289
See merge request klub-dev-ens/gestioCOF!498
2021-04-18 08:35:24 +00:00
Ludovic Stephan
b48d32f4bc
Remove limit for purchases
2021-04-16 16:42:12 +02:00
Tom Hubrecht
e36e88e77a
Merge branch 'Aufinal/no_warnings' into 'master'
...
Fix : plus de warnings chelous pendant les tests
See merge request klub-dev-ens/gestioCOF!495
2021-03-17 22:12:01 +00:00
Tom Hubrecht
8e9fc341ca
Merge branch 'Aufinal/forbidden_kfet' into 'master'
...
Test plus général pour l'erreur de permissions K-Fêt
See merge request klub-dev-ens/gestioCOF!491
2021-03-16 23:22:18 +01:00
Ludovic Stephan
c14c2d54a5
More general forbidden test
2021-03-16 23:04:03 +01:00
Tom Hubrecht
6adfaba8e9
Merge branch 'Aufinal/account_update_forms' into 'master'
...
Refactor la vue `account_update`
Closes #232 and #119
See merge request klub-dev-ens/gestioCOF!490
2021-03-16 23:02:12 +01:00
Tom Hubrecht
06005014f9
Merge branch 'Aufinal/delete_balance_offset' into 'master'
...
Supprime le champ `balance_offset` et harmonise la gestion des négatifs
Closes #281
See merge request klub-dev-ens/gestioCOF!489
2021-03-16 22:42:13 +01:00
Ludovic Stephan
4268a30d51
CHANGELOG
2021-03-16 22:10:33 +01:00
Tom Hubrecht
c71e6d22bf
Merge branch 'Aufinal/hcaptcha' into 'master'
...
Remplace recaptcha par hcaptcha
Closes #262
See merge request klub-dev-ens/gestioCOF!497
2021-03-16 22:00:48 +01:00
Ludovic Stephan
4df3ef4dd9
Fix secret import
2021-03-04 23:28:55 +01:00
Ludovic Stephan
af95e64344
TODO de prod
2021-03-04 23:14:10 +01:00
Ludovic Stephan
ac8ad15ad1
Fix tests: mock captcha clean method
2021-03-04 18:30:51 +01:00
Ludovic Stephan
47dd078b6a
Remplace recaptcha par hcaptcha
2021-03-04 17:56:42 +01:00
Ludovic Stephan
472a44c30f
Remove useless buttons
2021-03-03 23:11:39 +01:00
Ludovic Stephan
b72ea9ebf9
Forgot a warning
2021-02-28 02:56:12 +01:00
Ludovic Stephan
f9958e4da0
Fix : plus de warnings chelous pendant les tests
2021-02-28 02:35:40 +01:00
Ludovic Stephan
47f406e09e
Fix tests
2021-02-23 22:52:39 +01:00
Ludovic Stephan
1450b65dcd
Rework complet de account_update
2021-02-23 22:52:39 +01:00
Ludovic Stephan
aac94afcd0
Améliore le formulaire de mdp K-Fêt
2021-02-23 22:52:39 +01:00
Ludovic Stephan
209360f535
Delete self-update form
2021-02-23 22:52:39 +01:00
Ludovic Stephan
b224fedf28
Fix frozen account display
2021-02-23 22:52:39 +01:00
Ludovic Stephan
1ab071d16e
LINT
2021-02-23 22:52:27 +01:00
Ludovic Stephan
1cf6f6f3e7
Fix migration conflict
2021-02-23 22:41:04 +01:00
Ludovic Stephan
a421bec625
Fix templates
2021-02-23 22:33:00 +01:00
Ludovic Stephan
4e758fbba0
Delete balance_offset
field
2021-02-23 22:33:00 +01:00
Martin Pepin
2350109a33
Merge branch 'Aufinal/migration_checks' into 'master'
...
CI: ne lance `migration_checks` que sur nos propres apps
See merge request klub-dev-ens/gestioCOF!488
2021-02-23 21:18:36 +01:00
Ludovic Stephan
778637d60e
Merge branch 'dodo/limit-history-acces' into 'master'
...
Limit kfet history access
See merge request klub-dev-ens/gestioCOF!487
2021-02-20 22:58:59 +01:00
Dorian Lesbre
23f7865140
Switch back from config to settings
2021-02-20 20:59:54 +01:00
Dorian Lesbre
cc7c4306f4
Added change description to CHANGELOG
2021-02-20 19:10:49 +01:00
Dorian Lesbre
1183e50f60
Fixed tests
2021-02-19 13:48:12 +01:00
Dorian Lesbre
a8de7e0ae0
makemigrations
2021-02-19 13:38:36 +01:00
Dorian Lesbre
30a39ef2f6
Switch from account test to user test
2021-02-19 12:16:43 +01:00
Dorian Lesbre
9a635148bb
Switched from datetime.today() to timezone.now()
2021-02-19 12:13:23 +01:00
Dorian Lesbre
4b95b65be2
Removed unused import
2021-02-19 11:55:18 +01:00
Dorian Lesbre
884ec2535b
Fixed stupid errors
2021-02-19 11:51:48 +01:00
Dorian Lesbre
beba3052dd
Switched from hardcoded settings to config
2021-02-19 11:46:42 +01:00
Dorian Lesbre
46242ad2c0
Added separate permission for chef/trez
2021-02-19 10:48:24 +01:00
Dorian Lesbre
fa8c57269c
Added help_text to history form
2021-02-19 10:32:12 +01:00
Dorian Lesbre
b97bc8bfa8
Changed accoutn comparaison from id to equality
2021-02-19 10:26:05 +01:00
Dorian Lesbre
89fc309c01
Returned 403 on dubious history request
2021-02-19 10:18:47 +01:00
Ludovic Stephan
d7367476bc
Fix app names
2021-02-18 17:41:52 +01:00
Ludovic Stephan
7297baaf7e
Only check migrations for custom apps
2021-02-18 17:30:28 +01:00
Ludovic Stephan
8bf7914728
Merge branch 'kerl/fix_bds_production_urls' into 'master'
...
Hotfixes appliqués en production pour GestioBDS
See merge request klub-dev-ens/gestioCOF!484
2021-02-18 17:02:21 +01:00
Ludovic Stephan
71fbbcff8a
Merge branch 'kerl/rm_login_clipper' into 'master'
...
Admin : supprime la colonne login_clipper dans la liste des Users
See merge request klub-dev-ens/gestioCOF!486
2021-02-18 17:01:05 +01:00
Dorian Lesbre
9303772f9a
Renamed week_ago => history_limit and removed print
2021-02-10 22:19:52 +01:00
559b36b6f0
Limite le datepicker pour ne pas demander plus de temps que possible dans l'historique
2021-02-10 22:13:50 +01:00
Dorian Lesbre
fbafdb7134
Added kfet history date limit when not accessing own account
2021-02-10 21:32:44 +01:00
Martin Pépin
a53bd94737
admin: rm the login_clipper column in the user list
2021-02-09 22:42:49 +01:00
Ludovic Stephan
46ef12309a
Merge branch 'kerl/rename_cof_gestioAsso' into 'master'
...
Renomme le dossier cof/ en gestioasso/
See merge request klub-dev-ens/gestioCOF!485
2021-02-08 19:29:07 +01:00
Martin Pépin
4f60ba35eb
Update the settings' docstrings
2021-02-08 19:19:54 +01:00
Martin Pépin
f29b3f0187
Make "GestioBDS" appear in the README
2021-02-07 18:11:17 +01:00
Martin Pépin
aa3462aaee
Update the CI config wrt the new project name
2021-02-07 18:11:06 +01:00
Martin Pépin
7c35357060
Fix a reverse url resolution on the BDS home page
2021-02-07 17:39:28 +01:00
Martin Pépin
726b3f55a0
Rename the cof/ folder to gestioasso/
...
This is a much more sensible name since it contains configuration
applicable to both GestioCOF and GestioBDS.
The next logical step would be to rename the `gestioncof/` folder to
`cof/`.
2021-02-07 17:17:15 +01:00
Martin Pepin
63eeb5b7a9
Merge branch 'Aufinal/single_checkout' into 'master'
...
Fix "Checkout is not iterable" error
See merge request klub-dev-ens/gestioCOF!483
2021-02-07 16:40:48 +01:00
Martin Pépin
7081380058
Only redirect / → /gestion in development
2021-02-07 16:29:47 +01:00
Ludovic Stephan
288de95c49
Checkout form is single-option now
2021-02-06 18:58:25 +01:00
Martin Pépin
9a01d1e877
CHANGELOG: add missing items in the v0.9 release
2021-02-06 17:17:47 +01:00
Martin Pépin
10746c0469
Version 0.9
2021-02-06 17:01:22 +01:00
Basile Clement
5c8eca15b6
Merge branch 'kerl/admin_autocomplete' into 'master'
...
Admin: on utilise la recherche builtin de Django
See merge request klub-dev-ens/gestioCOF!476
2021-02-04 22:16:27 +01:00
Martin Pepin
ef64f9ce5c
Merge branch 'Buro_rights_by_BDS' into 'master'
...
Added basic buro right handling while updating member
See merge request klub-dev-ens/gestioCOF!482
2021-01-30 15:06:52 +01:00
Alseidon
9762838921
Basic Buro right handling - minor corrections
2021-01-30 14:59:04 +01:00
Alseidon
bf6d6d6430
Added basic buro right handling while updating member
2021-01-30 14:57:24 +01:00
Martin Pepin
ba9aa06b4f
Merge branch 'dodo/bds_export_csv' into 'master'
...
Dodo/bds export csv
Closes #285
See merge request klub-dev-ens/gestioCOF!481
2021-01-29 19:38:55 +01:00
Dorian Lesbre
880dc31353
Update CHANGELOG.md
2021-01-29 09:37:37 +01:00
Dorian Lesbre
9a78fca507
Switched to named url
2021-01-29 09:34:56 +01:00
Ludovic Stephan
4bc56d34e0
Fix tests
2021-01-21 21:08:57 +01:00
Ludovic Stephan
79f0757e9f
Fix kfet stats
2021-01-21 20:55:23 +01:00
Dorian Lesbre
a2eed13717
Added download button to home template
2021-01-21 20:38:15 +01:00
Dorian Lesbre
830aba984e
Added bds/members to export members list as CSV
2021-01-21 20:32:36 +01:00
Ludovic Stephan
33319cfe76
Merge branch 'newbie' into 'master'
...
Reset comptes COF
See merge request klub-dev-ens/gestioCOF!479
2021-01-07 09:32:33 +01:00
Alseidon
44b001bd3c
Satisfy Lord Black
2021-01-07 09:19:56 +01:00
Martin Pepin
ab9d95055e
Merge branch 'Tragicus/kfetTriArticles' into 'master'
...
kfet articles vendus en premier dans inventaire et commandes
Closes #219
See merge request klub-dev-ens/gestioCOF!477
2021-01-06 21:41:39 +01:00
Martin Pépin
40391d8814
Update CHANGELOG.md
2021-01-06 21:32:41 +01:00
Martin Pépin
681507f211
Happy new year!
2021-01-06 21:31:47 +01:00
Ludovic Stephan
7f133316a4
Merge branch 'Aufinal/black_required' into 'master'
...
Add black to requirements-devel
See merge request klub-dev-ens/gestioCOF!480
2020-12-17 18:58:59 +01:00
Ludovic Stephan
0bdbcf59fa
Add black to requirements-devel
2020-12-10 16:46:53 +01:00
Ludovic Stephan
0bad404b71
Merge branch 'Dodo/date_fermeture_bda' into 'master'
...
Ajout date de fermeture de tirage BDA sur la page d'acceuil
Closes #172
See merge request klub-dev-ens/gestioCOF!478
2020-12-10 14:20:56 +01:00
Alseidon
c100f2fc8d
Version 1.1 remise à zéro comptes COF
2020-12-09 23:00:00 +01:00
Alseidon
ba74779f95
Version 1.0 remise à zéro comptes COF
2020-12-09 22:40:32 +01:00
Quentin VERMANDE
035bbe68a5
make black happy
2020-12-09 22:22:12 +01:00
Alseidon
319db68655
Ra0 effective
2020-12-09 22:11:21 +01:00
Quentin VERMANDE
9d2c13e67c
kfetTriArticles
2020-12-09 22:03:54 +01:00
Alseidon
73c068055b
Remise à zéro basique comptes COF
2020-12-09 21:57:40 +01:00
Dorian Lesbre
30ce8d13af
Ajout date de fermeture de tirage BDA sur la page d'acceuil
2020-12-09 21:16:49 +01:00
Ludovic Stephan
340f8f16a7
Merge branch 'kerl/fix_vagrant' into 'master'
...
Mise à jour du setup vagrant
See merge request klub-dev-ens/gestioCOF!475
2020-12-07 20:56:09 +01:00
Martin Pépin
0ce1e62586
Fichier bootstrap.sh mieux commenté
2020-12-07 20:09:25 +01:00
Martin Pépin
783fe1de32
Liste des paquets dans un fichier séparé
2020-12-07 20:09:24 +01:00
Martin Pépin
49fde85187
Admin: on utilise la recherche builtin de Django
2020-12-04 19:33:17 +01:00
Martin Pepin
479e751b7c
Merge branch 'Aufinal/can_resell_paid' into 'master'
...
On peut revendre une place dès qu'on l'a payée
Closes #277
See merge request klub-dev-ens/gestioCOF!473
2020-12-04 18:01:22 +01:00
Martin Pépin
f2c1ff2abd
Update CHANGELOG
2020-12-04 17:53:56 +01:00
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
Martin Pepin
f952d50b12
Merge branch 'Aufinal/email_validation' into 'master'
...
Utilise un EmailField pour valider des emails
See merge request klub-dev-ens/gestioCOF!471
2020-12-04 17:29:07 +01:00
Ludovic Stephan
7324a72e6e
Merge branch 'kerl/make_kfetloaddevdata_idempotent' into 'master'
...
Rend kfetloaddevdata idempotent
See merge request klub-dev-ens/gestioCOF!474
2020-12-04 17:17:38 +01:00
Martin Pépin
ad73cc987d
CHANGELOG
2020-12-04 17:16:35 +01:00
Ludovic Stephan
e9e0c79b40
Migration
2020-12-04 17:15:15 +01:00
Ludovic Stephan
badee498a3
Use EmailField for email field
2020-12-04 17:15:15 +01:00
Martin Pepin
72cd55716b
Merge branch 'Aufinal/inventory_delete' into 'master'
...
Permet l'annulation d'un inventaire
Closes #251
See merge request klub-dev-ens/gestioCOF!457
2020-12-04 17:13:32 +01:00
Martin Pépin
a7cbd2d451
CHANGELOG
2020-12-04 17:02:36 +01:00
Ludovic Stephan
b9699637aa
Message de confirmation plus clair
2020-12-04 17:01:25 +01:00
Ludovic Stephan
521be6db85
Tests
2020-12-04 17:01:25 +01:00
Ludovic Stephan
f3701d91fc
Url and template for InventoryDeleteView
2020-12-04 17:01:25 +01:00
Ludovic Stephan
59dacda37d
Inventory deletion view
2020-12-04 17:01:25 +01:00
Martin Pépin
7f58b5fa00
Vagrant: toutes les units systemd sont là
2020-12-04 16:58:25 +01:00
Martin Pépin
df222f18a3
Update the vagrant config → should work now
2020-12-04 16:10:27 +01:00
Martin Pépin
5d22a4cac4
Rend kfetloaddevdata idempotent
...
Problème :
Le script assigne des trigrammes 001, 002, 003, etc aux comptes COF des
Gaulois et des Romains en utilisant l'ordre du queryset
CofProfile.objects.all().
L'ordre des comptes dans le queryset n'est pas spécifié et peut varier
d'une exécution à l'autre, ça pose problème dans la suite :
Account.objects.get_or_create(trigramme=trigramme, cofprofile=profile)
Cette command essaie de créer un nouveau trigramme pour certains comptes
quand l'ordre change.
Solution :
Ordonner le queryset.
2020-12-04 12:44:09 +01:00
Martin Pépin
cc3a436750
Version 0.8
2020-12-03 20:22:31 +01:00
Ludovic Stephan
404d3f4f4c
Merge branch 'Aufinal/spectacle_paid' into 'master'
...
Fix `paid` field in `bda/spectacles`
See merge request klub-dev-ens/gestioCOF!472
2020-10-29 11:15:41 +01:00
Ludovic Stephan
43fcdc8526
Fix paid
field in bda/spectacles
2020-10-28 14:35:45 +01:00
Ludovic Stephan
35f896b40f
CHANGELOG
2020-10-23 10:25:23 +02:00
Ludovic Stephan
fb1a38cff3
Merge branch 'Aufinal/bda_admin_misc' into 'master'
...
Ergonomie de l'admin du BdA
Closes #276
See merge request klub-dev-ens/gestioCOF!469
2020-10-23 10:11:15 +02:00
Ludovic Stephan
f88795a60e
Use same qset for every field
2020-10-22 19:34:59 +02:00
Ludovic Stephan
0ffebdf82f
Merge branch 'Aufinal/meta' into 'master'
...
Fix : autocomplétion sans classe `Meta`
See merge request klub-dev-ens/gestioCOF!468
2020-10-22 18:54:17 +02:00
Ludovic Stephan
147b8514ef
Limite les select au tirage concerné
2020-10-21 18:22:48 +02:00
Ludovic Stephan
d535cf24a3
Migration
2020-10-21 18:22:19 +02:00
Ludovic Stephan
84dab59c72
Ordre des participants + unicité
2020-10-21 18:22:05 +02:00
Ludovic Stephan
22cf0d403e
Permet d'archiver un tirage
2020-10-21 18:21:40 +02:00
Ludovic Stephan
a525cffaff
Fix participant autocomplete
2020-10-21 16:02:01 +02:00
Martin Pepin
1af602c9f7
Merge branch 'Aufinal/listing' into 'master'
...
Indique si les places sont sur listing
Closes #213
See merge request klub-dev-ens/gestioCOF!467
2020-09-22 21:48:40 +02:00
Martin Pépin
8a17aa2caa
Update CHANGELOG
2020-09-22 21:35:50 +02:00
Ludovic Stephan
7a9d96d83a
Indique si les places sont sur listing
2020-09-22 21:34:53 +02:00
Martin Pépin
3869c02dfa
Merge branch 'Aufinal/fix-fa-again' into master
2020-09-22 21:23:49 +02:00
Martin Pépin
848eb2274a
Update CHANGELOG
2020-09-22 21:23:20 +02:00
Ludovic Stephan
ebd8b7ccdb
Fix fa path in petitscours
2020-09-22 21:22:16 +02:00
Martin Pépin
3c6ab35390
Update CHANGELOG
2020-09-22 21:20:14 +02:00
Martin Pepin
57901c0013
Merge branch 'Aufinal/stat_2' into 'master'
...
Repassage sur les stats
Closes #246 and #255
See merge request klub-dev-ens/gestioCOF!462
2020-09-22 21:06:46 +02:00
Ludovic Stephan
d172dad0ab
Merge branch 'thubrecht/creation-compte' into 'master'
...
Empêche la modification des informations COF lors de la création d'un compte K-Psul
Closes #230
See merge request klub-dev-ens/gestioCOF!464
2020-09-21 16:43:17 +02:00
Tom Hubrecht
d0b7000747
Empêche la modification des informations COF lors de la création d'un compte K-Psul
2020-09-19 19:14:44 +02:00
Martin Pepin
84ff0d7182
Merge branch 'Aufinal/history_form' into 'master'
...
On utilise un vrai formulaire pour l'historique
Closes #242
See merge request klub-dev-ens/gestioCOF!461
2020-09-17 21:04:42 +02:00
Martin Pepin
600927b21c
Merge branch 'Aufinal/rip-custommail' into 'master'
...
Supprime `custommail` de gestioCOF
Closes #227
See merge request klub-dev-ens/gestioCOF!459
2020-09-17 20:22:11 +02:00
Ludovic Stephan
d965050563
Fix tests again
2020-09-16 19:31:10 +02:00
Ludovic Stephan
a14c9d9574
Fix tests
2020-09-16 19:19:29 +02:00
Ludovic Stephan
8f9c94fe10
Plein de nettoyage partout
2020-09-16 17:16:49 +02:00
Ludovic Stephan
46f447ec5d
Formulaires pour nettoyage
2020-09-16 17:16:14 +02:00
Ludovic Stephan
4dbf11f91e
Template tweaks
2020-09-15 21:10:36 +02:00
Martin Pepin
569ce0ba25
Merge branch 'Aufinal/open_password' into 'master'
...
Fix : fermeture manuelle de la K-Fêt avec mot de passe
Closes #183
See merge request klub-dev-ens/gestioCOF!460
2020-09-15 20:22:05 +02:00
Ludovic Stephan
aa955a06ef
Fin des adaptations
2020-09-15 20:05:54 +02:00
Ludovic Stephan
a9eb32217f
Adapte history.js pour serialize()
2020-09-15 20:05:32 +02:00
Ludovic Stephan
c7998f56f0
Datetimepicker tweaks
2020-09-15 20:05:06 +02:00
Ludovic Stephan
a6e58dcd68
On utilise le render par défaut
2020-09-15 20:04:35 +02:00
Ludovic Stephan
49591fa67e
Use form to clean data
2020-09-15 20:03:37 +02:00
Ludovic Stephan
9f9724b1d1
Arrow function works now
2020-09-15 19:57:27 +02:00
Ludovic Stephan
205dc93f4b
FilterHistoryForm est un formulaire décent
2020-09-15 19:40:45 +02:00
Martin Pepin
7f6d4527ed
Merge branch 'Aufinal/petitscours_uniqueness' into 'master'
...
Fix : KeyError sur les petits cours
See merge request klub-dev-ens/gestioCOF!458
2020-09-15 19:38:15 +02:00
Ludovic Stephan
43a2f8db53
Use arrow functions everywhere for consistency
2020-09-15 16:44:32 +02:00
Ludovic Stephan
ba4cc01ed4
Fix formatting
2020-09-15 16:37:41 +02:00
Ludovic Stephan
11d94ecba8
Fix this
shenanigans
2020-09-15 16:34:19 +02:00
Ludovic Stephan
82d58d23c9
Remove all traces of custommail
2020-09-15 11:49:32 +02:00
Ludovic Stephan
6377dd5c95
BdA : tests
2020-09-15 11:49:18 +02:00
Ludovic Stephan
f364928004
Remove custommail in bda
2020-09-15 11:49:05 +02:00
Ludovic Stephan
dc070278f7
Gestioncof : tests
2020-09-15 11:48:36 +02:00
Ludovic Stephan
561a121e04
Remove custommail in gestioncof
2020-09-15 11:48:21 +02:00
Ludovic Stephan
b03cf05ef7
Petits cours : tests
2020-09-15 11:47:53 +02:00
Ludovic Stephan
edf6a03bc4
Phase out custommail in petitscours
2020-09-15 11:47:28 +02:00
Ludovic Stephan
eb3cba31a7
Emails as text files
2020-09-15 11:15:12 +02:00
Ludovic Stephan
1ffda1a5c4
Better uniqueness checks
2020-09-14 11:40:21 +02:00
Martin Pépin
2bc97a115c
Version 0.7.2
2020-09-08 20:06:26 +02:00
Ludovic Stephan
b8072f4346
Merge branch 'kerl/404' into 'master'
...
Nouvelle page 404
See merge request klub-dev-ens/gestioCOF!454
2020-09-07 20:33:43 +02:00
Martin Pépin
cedd3cf816
404: english text looks better in italic
2020-09-07 20:16:16 +02:00
Martin Pépin
2c833daa7f
404.html: English version + tighter header
2020-09-07 20:10:34 +02:00
Martin Pepin
2a05c2247c
Apply suggestion to gestioncof/templates/404.html
2020-09-07 20:10:34 +02:00
Martin Pépin
c957ab2b72
Add K-Psul on the 404 page
2020-09-07 20:10:34 +02:00
Martin Pépin
98cce25f4c
cofsite-looking 404 ?
2020-09-07 20:10:26 +02:00
Martin Pepin
ba6ddfc516
Merge branch 'Aufinal/kfet-auth' into 'master'
...
Groupes et perms K-Fêt
See merge request klub-dev-ens/gestioCOF!438
2020-09-07 20:09:19 +02:00
Ludovic Stephan
c5d7eb9d30
Move permission handling to loadkfetdevdata
2020-09-07 14:57:41 +02:00
Ludovic Stephan
d3185f25c3
Black
2020-09-07 14:57:41 +02:00
Ludovic Stephan
007b5006d4
Use convenience imports
2020-09-07 14:57:41 +02:00
Ludovic Stephan
2d36c85085
Fix dev data
2020-09-07 14:57:41 +02:00
Ludovic Stephan
d6fa738a25
Fix tests
2020-09-07 14:57:41 +02:00
Ludovic Stephan
c145191e55
Use new models and mixins
2020-09-07 14:57:41 +02:00
Ludovic Stephan
91852bd4a0
Template fixes
2020-09-07 14:57:41 +02:00
Ludovic Stephan
6f5fa19fc3
M2M form mixin
2020-09-07 14:57:41 +02:00
Ludovic Stephan
e92d50593c
New models
2020-09-07 14:57:41 +02:00
Ludovic Stephan
0590bc3aab
Merge branch 'kerl/kfet_autocomplete_fix' into 'master'
...
Remets le lien pour inscrire des nouveaux comptes en K-Fêt sur la page d'autocomplétion
See merge request klub-dev-ens/gestioCOF!456
2020-09-07 14:43:04 +02:00
Martin Pépin
3286ad09df
Update CHANGELOG
2020-09-07 11:35:25 +02:00
Martin Pépin
3da0a613f7
K-Fêt autocompletion shows the 'new user' link
2020-09-07 11:32:28 +02:00
Ludovic Stephan
34be9e2393
Merge branch 'kerl/fix_exte_login_bug' into 'master'
...
Meilleure gestion des erreurs dans le formulaire de login Exté → pas de crash
See merge request klub-dev-ens/gestioCOF!455
2020-09-06 20:59:48 +02:00
Martin Pépin
97bdeed97a
Prevent a crash in exte login form error handling
2020-09-05 23:53:31 +02:00
Martin Pépin
8016b16904
Version 0.7.1
2020-09-05 00:02:28 +02:00
Ludovic Stephan
6e8926595d
Merge branch 'kerl/gestion_prefix' into 'master'
...
Ajoute le préfixe /gestion dans toutes les urls sauf celles de la K-Fêt et de Wagtail
Closes #256
See merge request klub-dev-ens/gestioCOF!450
2020-09-02 23:45:34 +02:00
Ludovic Stephan
a9b6bc65a2
Merge branch 'kerl/discard_weird_ldap_users' into 'master'
...
Ignore les comptes LDAP bizarres (e.g. root)
See merge request klub-dev-ens/gestioCOF!453
2020-09-02 23:44:33 +02:00
Martin Pépin
b1fd6e6021
Discard the (weird) ldap accounts that have no uid
2020-09-02 21:34:21 +02:00
Martin Pepin
576d43f44d
Merge branch 'sakarah/club-email-bug' into 'master'
...
Replace all "pont" by "." in COF clubs emails
See merge request klub-dev-ens/gestioCOF!452
2020-09-02 20:42:36 +02:00
Martin Pépin
c55a2c8c8e
Update changelog
2020-09-02 20:35:17 +02:00
Guillaume Bertholon
65c979ea59
Replace all "pont" by "." in COF clubs emails
...
This patches wrongly displayed "Contact : fromages@lists.enspontfr" on
https://cof.ens.fr/gestion/sitecof/annuaires-des-clubs/
2020-09-02 20:34:25 +02:00
Martin Pépin
dcd592ed11
Fix 100 tests wrt. 754a0b70e (big url changes)
2020-09-02 20:28:19 +02:00
Martin Pépin
e401303a08
User-friendly redirect : / → /gestion
2020-09-02 20:25:46 +02:00
Martin Pépin
2b72f3b40b
All pages go under /gestion except wagtail & k-fet
2020-09-02 20:23:11 +02:00
Martin Pepin
2aae281120
Merge branch 'Aufinal/urls' into 'master'
...
Améliore les URLs de gestiocof
Closes #265
See merge request klub-dev-ens/gestioCOF!439
2020-09-02 20:15:12 +02:00
Ludovic Stephan
1387da3b54
black 20
2020-09-02 20:06:28 +02:00
Ludovic Stephan
e868e6eb18
No bds prefix for prod
2020-09-02 20:06:28 +02:00
Ludovic Stephan
fc988e3fad
Fix isort
2020-09-02 20:06:28 +02:00
Ludovic Stephan
205b5c206b
Fix tests
2020-09-02 20:06:28 +02:00
Ludovic Stephan
ab9b4d14ef
Some changes to mega urls
2020-09-02 20:06:28 +02:00
Ludovic Stephan
5f8b8661bf
Better URL management
2020-09-02 20:06:28 +02:00
Ludovic Stephan
858a0c61e2
Rend à gestiocof ce qui est à gestiocof
2020-09-02 20:06:27 +02:00
Martin Pepin
12d3ef0c02
Merge branch 'Aufinal/wakemeup' into 'master'
...
On est en septembre !
See merge request klub-dev-ens/gestioCOF!451
2020-09-02 19:57:04 +02:00
Ludovic Stephan
da40ed1d8c
Migration
2020-09-01 15:27:28 +02:00
Martin Pépin
f10bd1eea2
Update changelog
2020-08-30 12:48:51 +02:00
Martin Pepin
8576023b42
Merge branch 'Evarin/css-sitecof' into 'master'
...
Améliorations CSS + directoryentrypage sitecof encore
See merge request klub-dev-ens/gestioCOF!447
2020-08-30 12:47:11 +02:00
Evarin
24eaaa277f
Sitecof : Affiche titre des pages dans <title>
2020-08-30 12:11:13 +02:00
Evarin
8f4e3bb048
isort linting migration
2020-08-29 23:39:31 +02:00
Evarin
7775e45b60
Black linting migration
2020-08-29 23:23:52 +02:00
Evarin
b3ada0eb89
Sitecof css modifs mineures
2020-08-29 23:21:20 +02:00
Evarin
74b9721fbd
Sitecof : Champ libre dans directoryentry
2020-08-29 23:15:28 +02:00
Evarin
7db75c0060
Sitecof CSS ++
2020-08-29 23:14:19 +02:00
Martin Pepin
d96b3d26b6
Merge branch 'Evarin/css-sitecof' into 'master'
...
Améliorations mineures CSS sitecof
See merge request klub-dev-ens/gestioCOF!446
2020-08-29 22:54:29 +02:00
Evarin
72210e1980
Sitecof : améliogrations CSS
2020-08-29 22:18:32 +02:00
Evarin
359f85a42d
Sitecof : CSS fixes
2020-08-29 21:34:28 +02:00
Martin Pépin
95cac47f4e
Version 0.7
2020-08-29 19:28:38 +02:00
Martin Pepin
7dc32add35
Merge branch 'Aufinal/kfet_autocomplete' into 'master'
...
Rajoute un nombre min de caractères pour la création d'un compte
See merge request klub-dev-ens/gestioCOF!440
2020-08-29 12:25:43 +02:00
Martin Pepin
0011cfe8f7
Merge branch 'Aufinal/bds_perms' into 'master'
...
Le groupe BDS a des permissions normales
Closes #263
See merge request klub-dev-ens/gestioCOF!444
2020-08-29 12:24:35 +02:00
Ludovic Stephan
5a7c4f64d5
changelog
2020-08-28 18:46:13 +02:00
Ludovic Stephan
46893a8df5
Min chars for autocompletion
2020-08-28 18:45:07 +02:00
Ludovic Stephan
81b45f74e3
changelog
2020-08-28 18:42:37 +02:00
Ludovic Stephan
c6dfcea5e2
Remove signals import
2020-08-28 18:41:40 +02:00
Ludovic Stephan
198e456c22
Fix BDS group perms
2020-08-28 18:41:40 +02:00
Martin Pepin
1518f4c703
Merge branch 'Aufinal/misc_bds' into 'master'
...
Quelques améliorations pour le BDS
Closes #270
See merge request klub-dev-ens/gestioCOF!443
2020-08-28 18:38:49 +02:00
Martin Pépin
2d59565f61
Update changelog
2020-08-28 18:23:20 +02:00
Ludovic Stephan
d3384dc5fc
Remove context processor
2020-08-28 18:23:20 +02:00
Ludovic Stephan
e7cc705350
Add member count to home
2020-08-28 18:23:20 +02:00
Ludovic Stephan
8fa635773c
Notifications are closable
2020-08-28 18:23:20 +02:00
Ludovic Stephan
1ac3e0f976
Plug logout link
2020-08-28 18:23:19 +02:00
Ludovic Stephan
f811230c25
Add comment field
2020-08-28 18:23:19 +02:00
Martin Pepin
74c3afe9ca
Merge branch 'Aufinal/black20' into 'master'
...
Fix la CI pour black
See merge request klub-dev-ens/gestioCOF!445
2020-08-28 18:18:15 +02:00
Ludovic Stephan
0875ef1278
Black v20
2020-08-28 18:00:54 +02:00
Martin Pepin
1d707aad41
Merge branch 'Aufinal/delete_bds_user' into 'master'
...
Possibilité de supprimer un utilisateur sur gestioBDS
Closes #271
See merge request klub-dev-ens/gestioCOF!442
2020-08-25 20:17:51 +02:00
Martin Pépin
fef19024d8
Update changelog
2020-08-25 20:04:26 +02:00
Ludovic Stephan
566e968849
Fix cance button
2020-08-25 20:04:26 +02:00
Ludovic Stephan
55c69ae42b
Styling
2020-08-25 20:04:26 +02:00
Ludovic Stephan
40839458a5
Form logic for user deletion
2020-08-25 20:04:26 +02:00
Ludovic Stephan
a259dd524f
UserDelete view
2020-08-25 20:04:26 +02:00
Ludovic Stephan
85c750d380
Delete unused template
2020-08-25 20:04:26 +02:00
Martin Pépin
826e45f619
Move CaptchaFrom from views.py to forms.py
2020-08-25 19:24:54 +02:00
Martin Pépin
5989f65154
Fix linting issues
2020-08-25 19:24:02 +02:00
Martin Pepin
2cf0ccbb6b
Merge branch 'Aufinal/ldap_mail' into 'master'
...
Utilise le mail LDAP lors de l'inscription d'utilisateurs
Closes #268
See merge request klub-dev-ens/gestioCOF!437
2020-08-25 19:08:25 +02:00
Ludovic Stephan
1677768177
Merge branch 'kerl/bds_authens' into 'master'
...
Authens pour le BDS
See merge request klub-dev-ens/gestioCOF!441
2020-08-24 15:38:24 +02:00
Martin Pépin
7a7e02adab
Bump authens to 0.1b0
2020-08-24 15:30:50 +02:00
Martin Pépin
62d26560d9
Fix BDS {MEDIA,STATIC}_{URL,ROOT}
2020-08-24 14:56:26 +02:00
Martin Pépin
df9639715b
Move COF-specific settings (channels) to common.py
2020-08-24 14:55:27 +02:00
Evarin
72237fef60
Sitecof : captcha pour les listes mail
2020-08-22 12:34:08 +02:00
Ludovic Stephan
8fa07bb845
Fix tests
2020-08-03 14:54:58 +02:00
Ludovic Stephan
7931f50611
Use ldap email
2020-08-03 14:30:21 +02:00
Ludovic Stephan
910536c6d3
Add email to ldap autocomplete
2020-08-03 14:30:12 +02:00
Martin Pépin
3d830884b1
Use authens in GestioBDS
2020-07-30 12:04:04 +02:00
Martin Pépin
9110e5b185
Update changelog
2020-07-27 23:10:18 +02:00
Ludovic Stephan
22f60163fe
Merge branch 'kerl/bds_rm_certificat_medical' into 'master'
...
Le BDS n'a pas besoin du certificat médical
See merge request klub-dev-ens/gestioCOF!435
2020-07-27 22:41:14 +02:00
Martin Pépin
8661716df9
BDS doesn't need the certificate file
2020-07-27 22:14:20 +02:00
Martin Pepin
ae64f09869
Merge branch 'Aufinal/bds_create_user' into 'master'
...
Création d'utilisateurs pour le BDS
See merge request klub-dev-ens/gestioCOF!433
2020-07-27 21:41:12 +02:00
Ludovic Stephan
422e2f7b42
Fix date input
2020-07-26 22:34:56 +02:00
Ludovic Stephan
f990934425
On utilise un vrai dict
2020-07-26 22:24:41 +02:00
Ludovic Stephan
effed1b5c5
Fix template
2020-07-26 22:12:38 +02:00
Ludovic Stephan
efbb9c2be3
Encore plus de doc
2020-07-26 22:10:09 +02:00
Ludovic Stephan
a6c9cf11bd
Meilleure doc
2020-07-26 22:10:09 +02:00
Ludovic Stephan
26fa9dc898
Add create user from scratch
2020-07-26 22:10:09 +02:00
Ludovic Stephan
ee1d158f2d
Plug into autocomplete and urls
2020-07-26 22:10:09 +02:00
Ludovic Stephan
5e5b224f89
User creation views
2020-07-26 22:10:09 +02:00
Ludovic Stephan
f33416b712
Use mixin in UserUpdateView
2020-07-26 22:10:09 +02:00
Ludovic Stephan
b6626093e5
Mixin pour forms multiples
2020-07-26 22:10:09 +02:00
Martin Pepin
15936751c0
Merge branch 'Aufinal/bulma_bds' into 'master'
...
CSS pour le BDS avec Bulma
See merge request klub-dev-ens/gestioCOF!432
2020-07-26 19:37:40 +02:00
Ludovic Stephan
9efc200f74
Fusionne base et base_layout
2020-07-26 19:24:40 +02:00
Ludovic Stephan
54e8f95667
Logout button fix
2020-07-26 19:06:38 +02:00
Ludovic Stephan
a5ccd40ec1
Merge branch 'kerl/prod_hotfix' into 'master'
...
Bump some channels/redis requirements
See merge request klub-dev-ens/gestioCOF!434
2020-07-26 17:24:38 +02:00
Martin Pépin
b4fbc3edf8
BDS CSS: use plain black for text
2020-07-26 17:17:20 +02:00
Martin Pépin
eb10c904e0
Bump some channels/redis requirements
2020-07-25 22:18:43 +02:00
Ludovic Stephan
c8c8c6abc8
Message fixes
2020-07-20 19:06:19 +02:00
Ludovic Stephan
e64f405299
Tweaks
2020-07-20 11:34:28 +02:00
Ludovic Stephan
aa2f691f1e
Chromium support
2020-07-20 11:30:31 +02:00
Ludovic Stephan
8cd9434664
Fix autocomplete width
2020-07-20 11:30:31 +02:00
Ludovic Stephan
e323f2f755
Bulmafy navbar
2020-07-20 11:30:31 +02:00
Ludovic Stephan
deae1c4639
FontAwesome : gestioncof -> shared
2020-07-20 11:30:31 +02:00
Ludovic Stephan
62281cb3b7
Templates update
2020-07-20 11:30:31 +02:00
Ludovic Stephan
6454931e70
bds is now in scss
2020-07-20 11:30:31 +02:00
Ludovic Stephan
6e88f1a887
Form utils for bulma
2020-07-20 11:30:31 +02:00
Ludovic Stephan
2e28986503
Bulma files
2020-07-20 11:30:31 +02:00
Ludovic Stephan
b24935b938
Merge branch 'kerl/bds_update_user' into 'master'
...
BDS: vue pour modifier un compte existant
See merge request klub-dev-ens/gestioCOF!430
2020-07-20 11:25:01 +02:00
Martin Pépin
ac06211841
Make bds tests resilient to LOGIN_URL changes
2020-07-20 11:12:01 +02:00
Martin Pépin
5c1e2e9cda
Basic tests for BDS registration views
2020-07-20 11:12:01 +02:00
Martin Pépin
c1e48579f1
BDS: UserUpdateView
2020-07-20 11:11:53 +02:00
Ludovic Stephan
c6a6e7fafa
Merge branch 'kerl/factor_autocompletion_views3' into 'master'
...
Vue et template génériques d'autocomplétion
See merge request klub-dev-ens/gestioCOF!429
2020-07-18 17:46:04 +02:00
Martin Pépin
be064262da
Fix kfet autocompletion hightlighting
2020-07-18 16:24:07 +02:00
Martin Pépin
9ac030fd16
Instantiate the Compose classes in their own file
2020-07-18 16:07:12 +02:00
Martin Pépin
7caee5665b
Make isort happy…
2020-07-18 16:07:12 +02:00
Martin Pépin
e7517195cd
Generic autocompletion view
2020-07-18 16:07:12 +02:00
Martin Pépin
30783d677b
Minor changelog update, version 0.5
2020-07-11 10:09:25 +02:00
Martin Pépin
c863b2010e
Update changelog
2020-07-05 20:06:33 +02:00
Ludovic Stephan
24d7d90c28
Merge branch 'kerl/factor_autocompletion_views2' into 'master'
...
Petite réorganisation de l'autocomplétion
See merge request klub-dev-ens/gestioCOF!428
2020-07-05 18:20:26 +02:00
Martin Pépin
f2b1962e1c
Autocompletion: more idiomatic permission handling
2020-07-05 16:38:59 +02:00
Ludovic Stephan
68ccd4722f
Merge branch 'kerl/factor_autocompletion_views1' into 'master'
...
Mécanisme de dé-duplication des résultats plus souple pour l'autocomplétion
See merge request klub-dev-ens/gestioCOF!427
2020-07-05 11:25:35 +02:00
Martin Pépin
9a90f19502
Separate the autocompletion logic form the views
2020-07-05 11:15:50 +02:00
Martin Pépin
fbbc9937f6
Fix a typo
2020-07-05 11:14:51 +02:00
Martin Pépin
e9f00b4f06
Update the isort config for version 5.*
2020-07-04 13:40:32 +02:00
Martin Pépin
c7ca96bce5
Autocompletion: new de-duplication mechanism
2020-07-04 13:06:24 +02:00
Ludovic Stephan
637572ab58
Merge branch 'kerl/bds_autocomplete' into 'master'
...
Autocomplétion du BDS et deuxième ébauche de page d'accueil
See merge request klub-dev-ens/gestioCOF!422
2020-07-01 23:26:01 +02:00
Ludovic Stephan
28370c8e67
Merge branch 'kerl/bds_settings' into 'master'
...
Séparation des settings cof / bds
See merge request klub-dev-ens/gestioCOF!420
2020-06-30 12:47:46 +02:00
Martin Pépin
701ea96a90
BDS autocompletion: add missing span in html
2020-06-29 20:49:02 +02:00
Martin Pépin
de1bba3695
Don't crash on LDAP errors
2020-06-29 20:47:36 +02:00
Martin Pépin
56f1edebe3
BDS: fancier home page
2020-06-29 20:47:36 +02:00
Martin Pépin
c52bac05b3
Restrict bds views to the staff
2020-06-29 20:47:36 +02:00
Martin Pépin
5d24786e20
BDS: user search on the home page
2020-06-29 20:47:35 +02:00
Martin Pépin
bca75dbf98
Add user-search in the BDS app
2020-06-29 20:47:35 +02:00
Martin Pépin
0789da7bed
Move the 'utils' template tags to the shared app
2020-06-29 20:47:35 +02:00
Martin Pépin
f6458074b2
Better documentation for show_toobar
2020-06-29 20:45:52 +02:00
Martin Pépin
eadfd1d3cd
Use cof.settings.local for migration checks
2020-06-29 20:45:52 +02:00
Martin Pépin
3a34ab4462
Make events tests independent of LOGIN_URL
2020-06-29 20:45:52 +02:00
Martin Pépin
25b603d667
only run relevant tests in cof/bds CI
2020-06-29 20:45:52 +02:00
Martin Pépin
f26d330973
Fix settings.local.ALLOWED_HOSTS
2020-06-29 20:45:52 +02:00
Martin Pépin
7a52e841e6
Use the new settings in gitlab-ci
2020-06-29 20:45:52 +02:00
Martin Pépin
9a3914ece6
Add wsgi file
2020-06-29 20:45:52 +02:00
Martin Pépin
6a32a72c15
One url file to rule them all,
...
one url file to find them
One url file to bring them all,
and in the darkness bind them.
2020-06-29 20:45:52 +02:00
Martin Pépin
d464b69b2e
Split settings between COF / BDS / Local
2020-06-29 20:45:52 +02:00
Martin Pépin
d16bf5e6b0
Merge local and dev settings
2020-06-29 20:45:52 +02:00
Ludovic Stephan
1ba6b5753f
Merge branch 'kerl/fix_kfet_autocomplete' into 'master'
...
Passe à `shared.views.autocomplete` pour l'autocomplétion de la K-Fêt
See merge request klub-dev-ens/gestioCOF!425
2020-06-25 17:16:59 +02:00
Ludovic Stephan
21fcb5daa9
Merge branch 'kerl/fix_ldap' into 'master'
...
Switch to python-ldap (instead of ldap3)
Closes #264
See merge request klub-dev-ens/gestioCOF!424
2020-06-25 01:20:40 +02:00
Martin Pépin
c5adc6b7d8
Use the new shared autocomplete framework in kfet/
2020-06-20 19:28:48 +02:00
Martin Pépin
b9ba0a3829
Add missing ldap system dependencies to CI config
2020-06-20 19:08:20 +02:00
Martin Pépin
028b6f6cb7
Switch to python-ldap (instead of ldap3)
2020-06-16 17:21:59 +02:00
Ludovic Stephan
3ca8b45014
Migration for events app
2020-05-20 17:41:25 +02:00
Ludovic Stephan
90fc6aa3e7
Merge branch 'Aufinal/simplify_tests' into 'master'
...
Utilitaire de tests simplifié
See merge request klub-dev-ens/gestioCOF!421
2020-05-15 16:12:47 +02:00
Martin Pépin
707b7b76db
Make events tests deterministic
2020-05-14 21:23:25 +02:00
Ludovic Stephan
6fff995ccd
Expand CSVResponseMixin functionality
2020-05-12 01:12:19 +02:00
Ludovic Stephan
9b0440429c
Fix ical tests
2020-05-12 00:47:48 +02:00
Ludovic Stephan
50266f2466
Fix tests for python3.7 (?)
2020-05-11 13:03:13 +02:00
Ludovic Stephan
65171d1276
Fix event tests
2020-05-11 01:16:58 +02:00
Ludovic Stephan
3b43ad84b5
Renomme testcases.py -> mixins.py
2020-05-11 00:19:43 +02:00
Ludovic Stephan
bb72a16b64
Lisibilité: t_urls -> reversed_urls
2020-05-10 23:58:46 +02:00
Ludovic Stephan
b1c69eddb5
Meilleure doc (j'espère !)
2020-05-10 23:58:13 +02:00
Ludovic Stephan
88c9187e2e
MegaHelpers devient un mixin
2020-05-10 23:56:45 +02:00
Ludovic Stephan
bbe831a226
Sépare un gros fourre-tout en plus petits mixins
2020-05-10 23:54:21 +02:00
Ludovic Stephan
f642b218d0
Consistance dans les noms de fichiers
2020-05-10 23:44:02 +02:00
Ludovic Stephan
cc72f47f00
Merge branch 'kerl/event_options_and_extra_fields' into 'master'
...
Les événements du nouveau module `events` récupèrent les même fonctionnalités que les événements de `gestioncof`
See merge request klub-dev-ens/gestioCOF!398
2020-05-10 00:53:27 +02:00
Martin Pépin
24180e747e
Events: one more validation check
2020-05-08 16:40:18 +02:00
Martin Pépin
5a0cf58d8a
Events: more validation & uniqueness constraints
2020-05-08 16:34:35 +02:00
Martin Pépin
d7d4d73af3
typos
2020-05-08 16:34:19 +02:00
Martin Pépin
c2f6622a9f
Update changelog
2020-05-08 16:16:37 +02:00
Martin Pépin
8778695e95
Add some more documentation in events.models
2020-05-08 16:14:04 +02:00
Martin Pépin
e0fd3db638
Make events tests deterministic
2020-05-08 16:14:04 +02:00
Martin Pépin
d5e9d09044
Events are configurable
...
This commit mostly reproduces the structure of gestioncof's events,
renames some stuff and adds a generic export view.
2020-05-08 16:14:04 +02:00
Martin Pepin
6e9dc03bc7
Merge branch 'Evarin/sitecof-improvements' into 'master'
...
Améliorations site du COF
See merge request klub-dev-ens/gestioCOF!415
2020-05-08 16:13:18 +02:00
Martin Pépin
6384cfc701
Update changelog
2020-05-08 16:04:05 +02:00
Martin Pépin
67d7dafc14
Merge branch 'master' into Evarin/sitecof-improvements
2020-05-08 15:56:42 +02:00
Martin Pépin
1ada8645b8
Black
2020-05-08 15:52:13 +02:00
Ludovic Stephan
d4a9e96e38
Merge branch 'kerl/ci' into 'master'
...
Bump python and postrgres in CI
See merge request klub-dev-ens/gestioCOF!419
2020-05-08 13:06:29 +02:00
Martin Pépin
abb8cc5a2d
Bump python and postrgres in CI
2020-05-08 12:47:03 +02:00
Martin Pepin
5a9ea4234e
Merge branch 'Aufinal/simplify_stats' into 'master'
...
Simplifie massivement les statistiques K-Fêt + étend la période de stats
Closes #257 and #244
See merge request klub-dev-ens/gestioCOF!411
2020-05-08 12:41:18 +02:00
Ludovic Stephan
c9136dbcfa
CHANGELOG
2020-05-08 11:15:12 +02:00
Ludovic Stephan
61e4ad9741
Better docstring
2020-05-08 11:14:32 +02:00
Ludovic Stephan
c9dad9465a
Fix tests
2020-05-08 11:14:32 +02:00
Ludovic Stephan
f10d6d1a71
Bugfix
...
Quand un article n'a pas de conso, il a été créé il y a 1s
2020-05-08 11:14:32 +02:00
Ludovic Stephan
97cb9d1f3b
Rework stats_manifest
...
On change la façon dont les vues gèrent l'interface avec `Scale`.
Side effect : on peut avoir l'historique sur tout le temps
2020-05-08 11:14:32 +02:00
Ludovic Stephan
c66fb7eb6f
Simplify statistic.js
...
On supprime des fonctions inutiles, on lint, et on simplifie 2-3 options
inutilisées.
2020-05-08 11:14:32 +02:00
Ludovic Stephan
48ad5cd1c7
Misc cleanup
...
On utilise SingleObjectMixin partout, et on simplifie 2-3 trucs
2020-05-08 11:14:32 +02:00
Ludovic Stephan
ef35f45ad2
Fusionne deux fonctions chunkify
...
On rajoute de l'agrégation optionnelle dans la fonction.
2020-05-08 11:14:32 +02:00
Ludovic Stephan
26bcd729bb
Supprime le code mort ou redondant
2020-05-08 11:14:32 +02:00
Ludovic Stephan
78ad4402b0
Plus de timezones
2020-05-08 11:14:32 +02:00
Ludovic Stephan
6767ba8e8c
Rajoute de la doc partout
2020-05-08 11:14:32 +02:00
Ludovic Stephan
4f15bb9624
CHANGELOG
2020-05-07 18:40:07 +02:00
Martin Pepin
3b2251a1d6
Merge branch 'Aufinal/editable_accounts' into 'master'
...
Harmonise les comptes non-lisibles ou éditables
Closes #234
See merge request klub-dev-ens/gestioCOF!412
2020-05-07 18:07:07 +02:00
Ludovic Stephan
64ceb813c6
Merge branch 'kerl/autocomplete' into 'master'
...
L'autocomplétion est isolée et réutilisable par d'autres apps
See merge request klub-dev-ens/gestioCOF!390
2020-05-07 16:28:46 +02:00
Martin Pépin
3b0d4ba58f
lstephan's suggestions
2020-05-07 15:44:37 +02:00
Ludovic Stephan
5298a19667
Merge branch 'kerl/merge_shared_utils' into 'master'
...
Préparation de la vue d'autocompletion pour l'intégration du BDS
See merge request klub-dev-ens/gestioCOF!401
2020-05-07 14:54:50 +02:00
Martin Pépin
b1d8bb04c4
Generic auto-completion mechanism
2020-05-07 14:48:37 +02:00
Martin Pépin
b8cd5f1da5
Drop type hints in shared.views.autocomplete
2020-05-05 22:30:17 +02:00
Martin Pépin
a259b04d9c
Explicative comment about the Type[M] annotation
2020-05-05 22:30:17 +02:00
Martin Pépin
e45ee3fb40
More documentation for ModelSearch
2020-05-05 22:30:17 +02:00
Martin Pépin
d2c6c9da7a
Type hints in shared.views.autocomplete
2020-05-05 22:30:16 +02:00
Martin Pépin
914888d18a
Merge the utils and shared apps
2020-05-05 22:30:16 +02:00
Ludovic Stephan
c8b8c90580
CHANGELOG
2020-04-24 21:03:16 +02:00
Antonin Reitz
922190d20f
Merge branch 'Aufinal/transferts_historique' into 'master'
...
Rajoute les transferts dans l'historique
Closes #77 and #233
See merge request klub-dev-ens/gestioCOF!399
2020-04-23 18:46:30 +02:00
Ludovic Stephan
6362740a77
Fix: history.html
marche (à peu près) correctement
2020-04-23 18:11:23 +02:00
Ludovic Stephan
9eebc7fb22
Fix: les transferts apparaissent dans l'historique perso
2020-04-23 18:11:23 +02:00
Ludovic Stephan
2aa06d2954
Simplify transfer view
2020-04-23 18:11:23 +02:00
Ludovic Stephan
931b2c4e1f
Refactor js code
...
Harmonize history denominations
* opegroups/transfergroups -> groups
* opes/transfers -> entries
* snake/camel case -> snake case
2020-04-23 18:11:23 +02:00
Ludovic Stephan
b450cb09e6
Petit refactor
2020-04-23 18:11:23 +02:00
Ludovic Stephan
8d11044610
Fix: pas d'erreur quand pas de compte K-Fêt
2020-04-23 18:11:23 +02:00
Ludovic Stephan
786c8f132f
Fix: tests cassés par commit précédent
2020-04-23 18:11:23 +02:00
Ludovic Stephan
677ba5b92e
Fix : le ws K-Psul remarche
2020-04-23 18:11:23 +02:00
Ludovic Stephan
fb4455af39
Fix tests 3
2020-04-23 18:11:23 +02:00
Ludovic Stephan
7438445110
Last tweaks
2020-04-23 18:11:23 +02:00
Ludovic Stephan
f7ce2edd87
Plug new history in templates
2020-04-23 18:11:23 +02:00
Ludovic Stephan
0221221d53
On renvoie les promesses
2020-04-23 18:11:23 +02:00
Ludovic Stephan
49ef8b3c15
Pas besoin de ws pour les suppressions
2020-04-23 18:11:23 +02:00
Ludovic Stephan
550a073d51
Fix tests again
2020-04-23 18:11:23 +02:00
Ludovic Stephan
af0de33d4c
Suppression des opérations et des transferts
2020-04-23 18:11:23 +02:00
Ludovic Stephan
c95e1818b2
Fix ws tests
2020-04-23 18:11:23 +02:00
Ludovic Stephan
41ad2a15ac
Update websocket data
2020-04-23 18:11:23 +02:00
Ludovic Stephan
36d6a4a1cd
Déplace la logique de l'historique dans history.js
...
On change le lock en `window.lock` pour y avoir accès partout
2020-04-23 18:11:23 +02:00
Ludovic Stephan
9b2c4c1f98
Change l'affichage de la date dans l'historique
...
Fixes #233
2020-04-23 18:11:23 +02:00
Ludovic Stephan
c3b5de336a
Gère l'affichage des transferts dans l'historique
2020-04-23 18:11:23 +02:00
Ludovic Stephan
bf117ec070
Renvoie les transferts dans l'historique
2020-04-23 18:11:23 +02:00
Ludovic Stephan
a3b0ea9b8d
Fetch transfers in history_json
2020-04-23 18:11:23 +02:00
Evarin
9dabab51db
I18n
2020-03-29 16:11:02 +02:00
Evarin
2ad400c5e7
Fixes interface cofcms
2020-03-29 15:36:47 +02:00
Evarin
8a27f70e89
Limite à 4 news sur la page d'accueil
2020-03-29 15:36:19 +02:00
Robin Champenois
fcf29fe6df
Merge branch 'sakarah/webfonts-sitecof' into 'master'
...
Servir les polices de sitecof en local
See merge request klub-dev-ens/gestioCOF!413
2020-03-29 11:50:28 +02:00
Robin Champenois
31e4658766
Merge branch 'sakarah/patch-jquery-path' into 'master'
...
Corrige les chemins vers jquery pour sitecof
See merge request klub-dev-ens/gestioCOF!414
2020-03-29 11:50:14 +02:00
Guillaume Bertholon
7b554e4778
Corrige les chemins vers jquery pour sitecof
2020-03-28 14:10:24 +01:00
Guillaume Bertholon
fe2f8aaa5a
Servir les polices de sitecof en local
...
Le nouveau site du COF réintroduisait des fontes hostées chez Google.
On s'en débarasse en utilisant des webfontes locales.
2020-03-28 13:59:07 +01:00
Ludovic Stephan
137dd655d1
Harmonise les comptes non-lisibles ou éditables
2020-03-11 22:30:47 +01:00
Martin Pepin
494cd5ddc1
Merge branch 'kerl/sitecof_directory_entry_template' into 'master'
...
Template pour les entrées d'annuaire (sitecof)
See merge request klub-dev-ens/gestioCOF!394
2020-02-12 18:36:05 +01:00
Martin Pépin
80188fa88d
CMS club page: redirection to parent page
2020-02-12 18:20:33 +01:00
Martin Pépin
4580f8bf0f
Update changelog
2020-02-12 18:20:33 +01:00
Martin Pépin
03e6fe3ef6
Default template for cof directory entries
2020-02-12 18:18:56 +01:00
Martin Pepin
8c75189ce1
Merge branch 'Aufinal/article_charts' into 'master'
...
Fix: les articles ont de nouveau leur graphe d'usage
Closes #260
See merge request klub-dev-ens/gestioCOF!410
2020-02-08 11:19:50 +01:00
Martin Pépin
68b7219cf5
Update CHANGELOG
2020-02-08 11:06:34 +01:00
Ludovic Stephan
7a828760b3
Répercute les changements en prod
2020-02-08 10:47:55 +01:00
Martin Pépin
5280ec2d18
Update CHANGELOG
2020-01-27 21:17:00 +01:00
Martin Pepin
b0d8b0b7f8
Merge branch 'Aufinal/ukf-display' into 'master'
...
Fix l'affichage des UKF dans K-Psul
Closes #259
See merge request klub-dev-ens/gestioCOF!409
2020-01-27 21:13:05 +01:00
Ludovic Stephan
bc90de76b6
Fix l'affichage des UKF
2020-01-18 17:01:07 +01:00
Ludovic Stephan
ed97ff466d
Merge branch 'kerl/fix-bda-participant-email-list' into 'master'
...
Les boutons "afficher/cacher" les mails et noms des participant⋅e⋅s d'un spectable BdA fonctionnent à nouveau
See merge request klub-dev-ens/gestioCOF!408
2020-01-18 16:40:57 +01:00
Martin Pépin
6cce9779fa
participants.html: s/participants/participant⋅e⋅s/
2020-01-18 12:23:45 +01:00
Martin Pépin
2c2872275a
Update CHANGELOG
2020-01-18 12:22:32 +01:00
Martin Pépin
fb3f6b9073
Add missing <script> tag in bda/participants.html
2020-01-18 12:20:39 +01:00
Martin Pépin
28cb35e0b0
Version 0.4.1
2020-01-17 21:54:00 +01:00
Antonin Reitz
79ad1346d3
Merge branch 'Aufinal/hashtag_42' into 'master'
...
On supporte à nouveau les caractères d'urls dans les trigrammes
See merge request klub-dev-ens/gestioCOF!407
2020-01-17 00:42:25 +01:00
Ludovic Stephan
bb05edfd6b
CHANGELOG
2020-01-16 23:24:07 +01:00
Ludovic Stephan
4d3531c2cb
Fix special chars in trigramme
2020-01-16 23:20:18 +01:00
Martin Pépin
ff968b68b2
Version 0.4
2020-01-15 22:42:24 +01:00
Ludovic Stephan
84c36b9903
CHANGELOG
2020-01-09 10:43:07 +01:00
Ludovic Stephan
3088098a0a
Merge branch 'master' into 'master'
...
Fixed images not showing up in petitscours
See merge request klub-dev-ens/gestioCOF!406
2020-01-09 10:40:14 +01:00
Julien Malka
f9feff4b24
Wrong use of src -> replaced by vendor
2020-01-07 23:01:19 +01:00
Julien Malka
08d7e12c38
Fixed images not showing up in petitscours
2020-01-07 22:37:37 +01:00
Ludovic Stephan
bd74f4098c
Merge branch 'kerl/ci_python_37' into 'master'
...
CI : les tests tournent sous python 3.5 et python 3.7
See merge request klub-dev-ens/gestioCOF!402
2020-01-07 19:26:56 +01:00
Martin Pepin
ee79281f53
Merge branch 'Aufinal/transfer_formset' into 'master'
...
Fix : nouveaux formulaires de transfert si le formset est plein
Closes #250
See merge request klub-dev-ens/gestioCOF!404
2020-01-04 16:49:42 +01:00
Martin Pépin
ee4d2d7f0e
CI: run tests on python:3.5 and python:3.7
2020-01-04 16:35:13 +01:00
Martin Pépin
f19b257afd
Update changelog
2020-01-04 16:33:32 +01:00
Ludovic Stephan
87e3795c76
Ajout d'un nouveau transfert si formulaire rempli
2020-01-04 15:31:14 +01:00
Ludovic Stephan
f5d6d91e51
Merge branch 'kerl/happy_new_year' into 'master'
...
Happy new year!
See merge request klub-dev-ens/gestioCOF!403
2020-01-03 23:41:33 +01:00
Martin Pépin
a1a2aac1f3
K-Fêt: new year, no valid promo…
2020-01-03 17:33:27 +01:00
Ludovic Stephan
c1449d50ce
Merge branch 'kerl/bds-buro' into 'master'
...
petite mise à jour de BDSProfile
See merge request klub-dev-ens/gestioCOF!396
2019-12-28 10:17:20 +01:00
Martin Pepin
e13a5b0e60
Merge branch 'kerl/sitecof_clubs_optional_urls' into 'master'
...
Dans la description d'un club (ou d'un partenaire du COF), le link est optionel.
See merge request klub-dev-ens/gestioCOF!393
2019-12-26 23:27:20 +01:00
Martin Pépin
858759865e
BDSProfile: s/membre/adhérent⋅e/
2019-12-26 23:19:41 +01:00
Martin Pépin
8bae013152
BDSProfile: add is_member & cotisation_type fields
2019-12-26 13:11:37 +01:00
Martin Pépin
4d5419fdbc
Use permissions to authenticate bds buro members
...
I prefer using a permission (namely `bds.is_team`) to determine if a
user is member of the BDS staff rather that using a `is_buro` boolean
field.
We already use this approach is the kfet app
2019-12-26 13:09:38 +01:00
Martin Pépin
2e4d7101ce
Update changelog
2019-12-26 01:03:46 +01:00
Martin Pépin
229b6e55f5
cofsite: make club links optional
2019-12-26 01:02:45 +01:00
Ludovic Stephan
d2ba9471da
Merge branch 'kerl/permission_disambiguation' into 'master'
...
Disambiguation in kfet's permission handling
See merge request klub-dev-ens/gestioCOF!397
2019-12-25 17:45:03 +01:00
Martin Pépin
1f945d1af3
Avoid using get_by_natural_key
2019-12-24 17:14:45 +01:00
Martin Pépin
64c792b11f
Disambiguation in kfet's permission handling
...
In some places we used to refer to permissions based on their codename
only (the part after the dot "." in the following examples) which can be
ambiguous. Typically, we might define permissions like "bds.is_team" or
"cof.is_team" in the near future ;)
2019-12-24 17:14:45 +01:00
Ludovic Stephan
67e28c704f
Merge branch 'kerl/kfet_calendar_links' into 'master'
...
Met à jour l'url du calendrier de la K-Fêt sur la page d'accueil de GestioCOF
See merge request klub-dev-ens/gestioCOF!392
2019-12-23 11:32:23 +01:00
Martin Pépin
ac901e5b77
Update changelog
2019-12-22 23:49:52 +01:00
Ludovic Stephan
21fc91c3a4
Merge branch 'kerl/rm_todo_prod' into 'master'
...
Remove the obsolete TODO_PROD file
See merge request klub-dev-ens/gestioCOF!395
2019-12-22 23:45:46 +01:00
Martin Pépin
00bad52570
Remove the obsolete TODO_PROD file
2019-12-20 17:49:55 +01:00
Martin Pépin
59d93900a3
Update the k-fet calendar url on the home page
2019-12-20 17:08:58 +01:00
Ludovic Stephan
2df4e931d4
Remove log
2019-12-18 21:15:40 +01:00
Ludovic Stephan
36e802082e
Merge branch 'kerl/changelog' into 'master'
...
Petite mise à jour du CHANGELOG et changement de format
See merge request klub-dev-ens/gestioCOF!391
2019-12-13 00:38:05 +01:00
Martin Pépin
d7e1583a8e
Nicer format for the CHANGELOG(.md) file
2019-12-12 22:02:57 +01:00
Martin Pépin
2c848a564c
Some changes were missing in CHANGELOG
2019-12-12 21:58:05 +01:00
Antonin Reitz
e97c873b4f
Merge branch 'Aufinal/backbone' into 'master'
...
Refactor le JS de K-Psul via Backbone : 1ère étape
See merge request klub-dev-ens/gestioCOF!388
2019-12-11 23:19:44 +01:00
Antonin Reitz
f151ad75c6
For the sake of clarity
2019-12-11 23:05:39 +01:00
Antonin Reitz
83ce873e25
Remove unnecessary caching
2019-12-11 22:36:40 +01:00
Martin Pepin
71e3c210f2
Merge branch 'Aufinal/forgotten_decorators' into 'master'
...
Rajoute les décorateurs oubliés pour l'auth par mdp
See merge request klub-dev-ens/gestioCOF!389
2019-12-11 19:10:19 +01:00
Ludovic Stephan
a4fdb578bc
Add forgotten kfet_password decorators
2019-12-02 20:44:25 +01:00
Ludovic Stephan
0498db1140
Merge branch 'Aufinal/fix_created_paid' into 'master'
...
Fix: les participants nouvellement créés ont payé leurs places BdA
Closes #231
See merge request klub-dev-ens/gestioCOF!379
2019-12-02 09:59:15 +01:00
Martin Pépin
77ceae37ef
Update CHANGELOG
2019-12-01 11:37:43 +01:00
Martin Pépin
085013b256
Add some explanations about !379
2019-12-01 11:35:38 +01:00
Ludovic Stephan
381b52f46c
Fix: les participants nouvellement créés ont payé leurs places BdA
...
Si un participanti est créé avec `get_or_create`, son champ `paid`
n'était pas créé... C'est difficile à insérer dans la logique du
Manager, donc on fix ça dans la vue concernée.
2019-12-01 11:35:38 +01:00
Martin Pépin
0bd3bd63aa
Update changelog wrt last MR ( !382 )
2019-12-01 11:24:21 +01:00
Martin Pepin
c6c4814519
Merge branch 'Aufinal/fix-stats-escape' into 'master'
...
Fix la page de stats pour certains comptes avec des caractères spéciaux
See merge request klub-dev-ens/gestioCOF!382
2019-12-01 11:22:36 +01:00
Martin Pépin
b1747f61fe
Version 0.3.3
2019-11-30 19:04:56 +01:00
Ludovic Stephan
85aa56d030
Fix tests
2019-11-29 15:33:03 +01:00
Ludovic Stephan
361ad46be4
First steps in Account logic
2019-11-29 14:51:54 +01:00
Ludovic Stephan
4e15ab8041
Install django-js-reverse
2019-11-29 14:50:44 +01:00
Ludovic Stephan
091208b66c
Make kfet.account.read.json
accessible with GET
2019-11-29 14:47:12 +01:00
Ludovic Stephan
7df8a9ef6b
Add vendor library and their sources
2019-11-28 18:26:39 +01:00
Martin Pépin
4c7993f48f
Forgot CHANGELOG for !385
2019-11-28 16:09:47 +01:00
Martin Pepin
94d5e0f0ac
Merge branch 'Aufinal/fix_cas_redirect' into 'master'
...
Fix la redirection lors d'un logout CAS
See merge request klub-dev-ens/gestioCOF!385
2019-11-28 16:08:50 +01:00
Martin Pépin
a521caba8d
Update changelog wrt the lastest merged patches.
2019-11-28 14:53:44 +01:00
Martin Pepin
797f0356f6
Merge branch 'Aufinal/no_reduction_category' into 'master'
...
Permet d'exclure des catégories de la réduction COF
See merge request klub-dev-ens/gestioCOF!386
2019-11-28 14:30:54 +01:00
Martin Pépin
8dcc1f012a
Update CHANGELOG
2019-11-28 14:17:59 +01:00
Ludovic Stephan
1115960107
Add unit test
2019-11-27 16:57:48 +01:00
Ludovic Stephan
727b3042a1
Merge branch 'kerl/fix-multiple-select-urls' into 'master'
...
Mise à jour de certaines urls (multiple-select.{css,js})
See merge request klub-dev-ens/gestioCOF!387
2019-11-27 16:09:13 +01:00
Martin Pépin
61efded673
Remove unused references to multiple-select.*
2019-11-27 15:46:50 +01:00
Ludovic Stephan
38aecdd741
Typo
2019-11-27 14:41:20 +01:00
Martin Pépin
e0ffee295d
Fix static urls for multiple-select
2019-11-27 14:30:24 +01:00
Ludovic Stephan
e62756ed29
Fix tests
2019-11-27 14:20:24 +01:00
Ludovic Stephan
ac3bfbe368
Display in kfet js
2019-11-27 14:14:42 +01:00
Ludovic Stephan
affdf43e0b
Add logic in views and templates
2019-11-27 14:14:33 +01:00
Ludovic Stephan
20ceec0e64
Add has_reduction property
2019-11-27 14:11:53 +01:00
Ludovic Stephan
4c9ee8a57d
Merge branch 'fix-cash-transaction-cancel' into 'master'
...
Fix typo and hence cash transaction cancel
Closes #239
See merge request klub-dev-ens/gestioCOF!384
2019-11-27 13:32:23 +01:00
Ludovic Stephan
5c581d8984
Cleanup + no msg on CAS logout
2019-11-27 13:14:20 +01:00
Ludovic Stephan
ac4d5cf7d5
Patch CAS redirect parameter in logout view
2019-11-27 13:03:28 +01:00
Antonin Reitz
b90e749a7f
Fix typo and hence cash transaction cancel
2019-11-27 10:50:27 +01:00
Ludovic Stephan
d04b79bcb5
Disable autoescape in js code
2019-11-25 10:48:43 +01:00
Ludovic Stephan
14164ec4a5
Merge branch 'kerl/fix-wagtail-deps' into 'master'
...
Règle un problème de dépendances de wagtailmenus avec python 3.8
See merge request klub-dev-ens/gestioCOF!381
2019-11-25 10:26:06 +01:00
Martin Pépin
f9b461a08d
Bump django-redis-cache to version 2.1.*
2019-11-22 22:45:27 +08:00
Martin Pépin
8c5d09dbee
Bump wagtail to version 2.7 (LTS)
2019-11-22 22:35:23 +08:00
Martin Pépin
e2af45929e
Use the production requirements in CI
2019-11-22 22:22:47 +08:00
Martin Pépin
481cb5e478
Move production deps out of requirements.txt
2019-11-22 22:18:04 +08:00
Martin Pépin
a3ca2e66bf
Fix some dependency issue with wagtail
2019-11-22 22:18:04 +08:00
Martin Pepin
82746f1492
Merge branch 'Aufinal/fix_privilege_escalation' into 'master'
...
Fix le problème d'auth par mdp K-Fêt
Closes #240
See merge request klub-dev-ens/gestioCOF!380
2019-11-22 14:37:13 +01:00
Ludovic Stephan
ea45eb1f55
Fix tests
2019-11-21 01:21:26 +01:00
Ludovic Stephan
a60df91b04
Add decorator to needed views
2019-11-21 01:21:26 +01:00
Ludovic Stephan
c1a99453d5
Add password auth decorator
2019-11-21 01:21:26 +01:00
Ludovic Stephan
be5218f7e1
Remove pesky middleware
2019-11-21 01:21:26 +01:00
Ludovic Stephan
dd5fe36ee1
Fix requirements problem
2019-11-21 01:21:26 +01:00
Ludovic Stephan
4a4dae9951
Merge branch 'kerl/clubs' into 'master'
...
Nouvelle app: clubs
See merge request klub-dev-ens/gestioCOF!372
2019-11-06 19:22:58 +01:00
Martin Pépin
5d87d7f249
Update CHANGELOG; version 0.3.2
2019-11-04 15:41:40 +01:00
Martin Pepin
f9cde30e08
Merge branch 'Aufinal/fix_missing_names' into 'master'
...
Fix le problème des prénoms manquants
See merge request klub-dev-ens/gestioCOF!378
2019-11-04 15:39:35 +01:00
Ludovic Stephan
b376114bee
Fix tests
2019-11-03 00:36:57 +01:00
Ludovic Stephan
57088cda03
Fix le problème des prénoms manquants
...
Depuis !360 , quand on modifie son propre compte K-Fêt, cela supprime les
noms associés sur gestioCOF... Le problème est réglé, normalement.
2019-11-03 00:02:34 +01:00
Ludovic Stephan
b542f805f0
Merge branch 'kerl/empty_banner' into 'master'
...
Pour supprimer, la bannière "d'annonces" en haut de GestioCOF…
See merge request klub-dev-ens/gestioCOF!377
2019-10-21 16:28:20 +02:00
Martin Pépin
28a129f69c
Allows empty announcement banners
2019-10-19 21:17:13 +02:00
Martin Pépin
c4f5e168f2
Update CHANGELOG for v0.3.1
2019-10-19 21:00:44 +02:00
Martin Pepin
5b2dad6fff
Merge branch 'Aufinal/fix-accounts' into 'master'
...
Fix account history
See merge request klub-dev-ens/gestioCOF!376
2019-10-19 20:59:39 +02:00
Ludovic Stephan
b22a77e603
Fix account history
2019-10-19 10:33:15 +02:00
Martin Pepin
4d9c66cb51
Merge branch 'Aufinal/fix-reventes' into 'master'
...
Fix: Souscription aux reventes
See merge request klub-dev-ens/gestioCOF!375
2019-10-18 09:31:56 +02:00
Ludovic Stephan
9254e3f8f7
Fix: Souscription aux reventes
...
Il me semblait que c'était déjà fait...
2019-10-17 10:50:54 +02:00
Martin Pepin
635c14ff8f
Merge branch 'Aufinal/staticfiles' into 'master'
...
Réorganise les fichiers statiques de GestioCOF
See merge request klub-dev-ens/gestioCOF!352
2019-10-16 21:24:31 +02:00
Ludovic Stephan
898abd15c6
Ignore /src
directories
2019-10-16 20:51:10 +02:00
Ludovic Stephan
337453c6c6
Add source for bootstrap-datetimepicker
2019-10-16 20:50:59 +02:00
Ludovic Stephan
bdb8f06e1d
Déplace bda.css et supprime une police
...
On met le static de `bda` dans `static/bda`, comme tout le monde.
2019-10-16 20:27:57 +02:00
Ludovic Stephan
64b4c2c08a
Revert "Ignore src/
directories"
...
On ignorera ça proprement en Django 2.2...
2019-10-16 20:27:57 +02:00
Ludovic Stephan
8a6a3d0994
Ignore src/
directories
2019-10-16 20:27:57 +02:00
Ludovic Stephan
8ea0cb84d1
Move source files (not minified) to src/
directory
2019-10-16 20:27:57 +02:00
Ludovic Stephan
099857e226
Supprime une police inutilisée
2019-10-16 20:27:57 +02:00
Ludovic Stephan
f8e954ff79
Range les fichiers statiques K-Fêt
...
Les fichiers JS et CSS externes sont dans `static/kfet/vendor`, minifiés ; on bump la version de `reconnecting-websocket`.
2019-10-16 20:27:57 +02:00
Ludovic Stephan
435bb392ea
Déplace une fonction js
2019-10-16 20:27:57 +02:00
Ludovic Stephan
de10392a7f
Supprime des dossiers inutiles
...
Pas besoin de 12 sous-dossiers pour `autocomplete-light`.
2019-10-16 20:27:57 +02:00
Ludovic Stephan
e421792906
Déplace les fichiers statiques de gestioncof
...
On met tous les fichiers de `gestioncof/static` dans `gestioncof/static/gestioncof`, comme pour les templates. On en profite pour virer pas mal de fichiers inutiles de `font-awesome`.
2019-10-16 20:27:57 +02:00
Ludovic Stephan
abb3823a8b
Interaction Moment.js + Chart.js
...
On avait pas besoin de servir `Chart.bundle.js` puisqu'on avait déjà `moment.js` servi à part. Aussi, on déplace tout et on sert les fichiers minifiés.
2019-10-16 20:27:57 +02:00
Ludovic Stephan
b343c6c6e0
Déplace (et modifie) jquery-ui
...
On déplace les deux versions de `jquery-ui` dans `shared/static/vendor/`, et on en récupère une version avec seulement les fonctionnalités requises.
2019-10-16 20:27:57 +02:00
Ludovic Stephan
22cfaf9b44
Idem pour jquery
...
On met `jquery` dans `shared/static/vendor/`, et on bump un chouïa la version.
2019-10-16 20:27:57 +02:00
Ludovic Stephan
a9dce881bd
Supprime le CDN Bootstrap
...
On sert les fichiers nécessaires à `bootstrap` en local, dans `shared/static/vendor`.
2019-10-16 20:27:57 +02:00
Ludovic Stephan
0100a9a62e
Move stupidtable
import to base.html
...
Aussi, on déplace les fichiers JS associés dans `static/gestioncof/vendor/`
2019-10-16 20:27:57 +02:00
Martin Pépin
6fba63846a
Version 0.3
2019-10-16 20:12:07 +02:00
Martin Pépin
2a06cc5806
Update changelog
2019-10-16 19:58:12 +02:00
Martin Pépin
380e38519b
New app: clubs
...
- Clubs will be used both by the cof and the bds app.
- For now, they are only visible in development.
2019-10-16 19:58:12 +02:00
Ludovic Stephan
8ccaf8beaf
Merge branch 'kerl/ci_missing_migrations' into 'master'
...
La CI regarde s'il manque des migrations
Closes #214
See merge request klub-dev-ens/gestioCOF!373
2019-10-16 19:55:29 +02:00
Ludovic Stephan
7892f42e3e
Merge branch 'kerl/event_subscriptions' into 'master'
...
[Événements] Export des inscrits en csv
See merge request klub-dev-ens/gestioCOF!374
2019-10-16 19:48:36 +02:00
Martin Pépin
2964d3a4aa
K-FêT: new year = new promo = new migration
2019-10-16 19:43:20 +02:00
Martin Pépin
46da197507
CI: track missing migrations
2019-10-16 19:43:20 +02:00
Ludovic Stephan
b005e772ea
Merge branch 'kerl/bds' into 'master'
...
Début de l'app BDS (2)
See merge request klub-dev-ens/gestioCOF!371
2019-10-16 19:19:52 +02:00
Ludovic Stephan
f83eeb7a5f
Merge branch 'kerl/noncof_profile_and_passwd_change' into 'master'
...
Les utilisateurs non-COF peuvent changer leur mot de passe et éditer leur profil
Closes #178 and #177
See merge request klub-dev-ens/gestioCOF!368
2019-10-16 19:17:56 +02:00
Martin Pépin
e94015a142
Update changelog
2019-10-15 21:56:48 +02:00
Martin Pépin
98fe68d0be
Translation fixes in bds.models
...
- the 'u' in ugettext_lazy in a legacy of python2, we can drop it now
- translate all verbose names
- start field verbose names with a lowercase letter
2019-10-15 21:54:52 +02:00
Martin Pépin
f9aee86a1c
Only enable the bds app in development
2019-10-15 21:54:52 +02:00
Martin Pépin
e2a7e1f6de
BDSProfile: enable the default admin
2019-10-15 21:53:04 +02:00
Martin Pépin
53efb4b542
Enable bds checks in CI
2019-10-15 21:53:04 +02:00
Ludovic Stephan
53ea6f24ee
Isort setup
2019-10-15 21:52:19 +02:00
Ludovic Stephan
b3e7b59903
Migrations
...
Une migration pour les modèles, et une pour créer le groupe du Burô du
BDS
2019-10-15 21:51:40 +02:00
Ludovic Stephan
bc7c30e2ee
Init app + models
...
Le modèle de profil BDS est le seul utile pour l'instant ; c'est un mix
entre `CofProfile` et les modèles de Sport@Ulm.
2019-10-15 21:51:40 +02:00
Ludovic Stephan
4da5add25a
Move choices_length
to shared folder
2019-10-15 21:51:23 +02:00
Martin Pépin
f5766e9207
events: make isort happy
2019-10-08 23:33:46 +02:00
Martin Pépin
a8fd04e4c0
test events.views.participants_csv
2019-10-08 22:26:31 +02:00
Martin Pépin
33bc3c5882
Events: simple csv participants export
2019-10-08 22:26:30 +02:00
Martin Pépin
41a3c4c161
add event subscriptions (models only)
2019-10-08 22:21:37 +02:00
Martin Pépin
83c83d791b
Update changelog
2019-10-07 18:45:02 +02:00
Martin Pépin
d5f0060e2e
Fix profile test: non-cof users can access /profile
2019-10-07 18:45:02 +02:00
Martin Pépin
41256154ad
Make profile editable for non-COF user
...
Non-COF users can now edit their own profile
Contrary to COF users they cannot change their mailing list settings
2019-10-07 18:45:02 +02:00
Martin Pépin
0814cfe1ef
home templates: add links for non-COF users
...
Add links to
- change password page
- profile page
2019-10-07 18:45:02 +02:00
Martin Pépin
730611039b
isort events.admin
2019-10-07 18:44:36 +02:00
Martin Pépin
9b355d5b56
linter config: add events to known_first_party
2019-10-07 18:32:51 +02:00
Martin Pépin
6781122fc1
Add the events app to the CI checks
2019-10-07 18:32:06 +02:00
Ludovic Stephan
e9ca8eb8dd
Merge branch 'kerl/refactor_events' into 'master'
...
Nouvelle app pour gérer les événements
See merge request klub-dev-ens/gestioCOF!365
2019-10-07 14:39:51 +02:00
Martin Pépin
97f682dfcd
Update changelog
2019-10-06 19:25:26 +02:00
Martin Pépin
9f2004bb54
Add events in the coverage report
2019-10-06 19:24:32 +02:00
Martin Pépin
8119591c62
enable the "events" app in CI
2019-10-06 19:24:32 +02:00
Martin Pépin
34e552f760
New 'events' app, first model
...
The objective is to move (at some point) all the management logic in
this app. Before that time: as long as the events app does not have all
the features necessary to be used in production it is only available in
dev mode and coexists with the old event system. When it's ready we'll
move the old events in the new app (data migration) and remove the old
system.
2019-10-06 19:24:32 +02:00
Ludovic Stephan
ef97afd86c
Merge branch 'kerl/pub-kde' into 'master'
...
Un peu de pub pour KDEns
See merge request klub-dev-ens/gestioCOF!367
2019-10-06 19:18:38 +02:00
Martin Pépin
9a7a447246
Update changelog
2019-10-06 17:54:12 +02:00
Martin Pépin
f85f014bc9
Un peu de pub pour KDEns
2019-10-06 17:53:30 +02:00
Ludovic Stephan
fb1519cece
Merge branch 'kerl/unused-deps' into 'master'
...
Remove useless / unused dependencies
See merge request klub-dev-ens/gestioCOF!366
2019-10-06 13:50:43 +02:00
Ludovic Stephan
51e8058f97
Merge branch 'kerl/home_template_view' into 'master'
...
Rewrite home as a class-based view
See merge request klub-dev-ens/gestioCOF!369
2019-10-06 13:47:07 +02:00
Ludovic Stephan
fba6b592f5
Merge branch 'kerl/fix_revente_crash' into 'master'
...
Fix crash on /bda/revente/<id>/manage
Closes #228
See merge request klub-dev-ens/gestioCOF!370
2019-10-06 12:01:53 +02:00
Martin Pépin
db158ad312
Update changelog
2019-10-06 11:52:32 +02:00
Martin Pépin
8c9de4303b
Add a testcase for issue #228
2019-10-06 10:57:15 +02:00
Martin Pépin
9661751df2
Fix crash on /bda/revente/<id>/manage
...
`annotate_paid` method is a method of the Participant object manager,
not the Participant class itself
2019-10-06 10:32:18 +02:00
Martin Pépin
d1c9d27a65
Rewrite home as a class-based view
2019-10-06 00:28:32 +02:00
Martin Pépin
838bf325ba
Remove useless / unused dependencies
...
- unicodecsv is useless in py3
- autoslug is not used anywhere
- wheels comes with any correctly configured virtualenv
2019-10-05 17:38:31 +02:00
Ludovic Stephan
b99fd03df2
Merge branch 'kerl/403_vs_404' into 'master'
...
Replace some 403 by 404 to avoid trigramme leaking
Closes #224
See merge request klub-dev-ens/gestioCOF!364
2019-10-05 16:01:46 +02:00
Martin Pépin
d37c41e99f
kfet/test_views: more eloquent test names
2019-10-05 13:48:29 +02:00
Martin Pépin
a4ecd344d0
Update CHANGELOG
2019-10-05 11:28:59 +02:00
Martin Pépin
e0285607a0
Fix tests according to issue #224
2019-10-05 02:25:05 +02:00
Martin Pépin
96adadce5e
Replace some 403 by 404 to avoid trigramme leaking
...
Fixes #224
2019-10-05 01:25:36 +02:00
Robin Champenois
e8a9e808f5
Merge branch 'Aufinal/charte_bda' into 'master'
...
Ajoute un popup de charte BdA à l'inscription aux tirages
Closes #225
See merge request klub-dev-ens/gestioCOF!363
2019-09-26 21:00:33 +02:00
Ludovic Stephan
966cf6ce15
On hook le popup à form.submit()
2019-09-26 20:30:04 +02:00
Ludovic Stephan
6406b493a2
Add background opacity
2019-09-26 20:04:07 +02:00
Ludovic Stephan
0701213225
Copy jconfirm to shared
2019-09-18 20:44:35 +02:00
Ludovic Stephan
411e66b13c
Style charte popup
2019-09-18 19:36:14 +02:00
Ludovic Stephan
5db7eef1d7
Add charte popup and functionality
2019-09-18 19:36:02 +02:00
Ludovic Stephan
0a1b20dd4e
Add accepte_charte
field to Participant
model
2019-09-18 19:34:56 +02:00
Ludovic Stephan
92ebf0d233
Merge branch 'Kerl/registration_less_email_errors' into 'master'
...
Erreurs de mails lors de l'inscription d'un nouveau membre
Closes #173
See merge request klub-dev-ens/gestioCOF!348
2019-06-17 22:31:43 +02:00
Basile Clement
405f95a43b
Early return if there is no email
2019-06-17 22:17:34 +02:00
Martin Pépin
ab89002cfc
Clearer error message
2019-06-17 22:17:34 +02:00
Martin Pépin
c319780ab5
CHANGELOG: less email errors during registration
2019-06-17 22:17:34 +02:00
Martin Pépin
9f23f85b87
Handle errors when sending welcome emails during member registraton
2019-06-17 22:17:02 +02:00
Ludovic Stephan
1cf333f0fc
Merge branch 'Aufinal/readonly_user' into 'master'
...
Désactive la modification des comptes COF sur l'interface K-Fêt
See merge request klub-dev-ens/gestioCOF!360
2019-06-17 22:15:57 +02:00
Ludovic Stephan
bf372a1ce2
CHANGELOG
2019-06-17 22:03:11 +02:00
Ludovic Stephan
96430d852c
Do not repeat default argument
2019-06-17 22:02:12 +02:00
Ludovic Stephan
fc8c8fdf29
Montre les infos à tout le monde
2019-06-17 22:02:11 +02:00
Ludovic Stephan
8d30c5c7e5
Fix tests
2019-06-17 22:02:11 +02:00
Ludovic Stephan
fb56293273
Supprime un formulaire inutilisé
2019-06-17 22:02:11 +02:00
Ludovic Stephan
baa3826a42
Change le formulaire de account_update
...
On fait un formulaire d'info non-éditable pour pas que les gens mettent des noms troll
2019-06-17 22:02:11 +02:00
Ludovic Stephan
4598abc721
Merge branch 'Aufinal/paid_attributions' into 'master'
...
Déplace le champ `paid` des participants aux attributions
See merge request klub-dev-ens/gestioCOF!361
2019-06-17 21:59:01 +02:00
Ludovic Stephan
d7d0daea0d
Commentaire dans la fonction
2019-06-17 21:40:32 +02:00
Ludovic Stephan
46e7305953
Meilleur décorateur
2019-06-17 21:38:49 +02:00
Ludovic Stephan
4f15b820a5
Use manager from queryset
2019-06-17 21:36:09 +02:00
Ludovic Stephan
edd92beadf
Add logging call
2019-06-17 21:21:12 +02:00
Ludovic Stephan
20bb9fe54b
Remove debug log
2019-06-17 21:13:12 +02:00
Ludovic Stephan
ba5aa6da5f
Remove useless local variable
2019-06-17 21:12:03 +02:00
Ludovic Stephan
b11e35616c
Changelog
2019-06-08 15:33:47 +02:00
Ludovic Stephan
fa98bb34bd
Adapte l'interface admin
2019-06-08 15:33:09 +02:00
Ludovic Stephan
a67446048e
Réécrit des vues pour la nouvelle fonctionnalité
...
On en profite pour rajouter des Mixins pour les perms buro/cof
2019-06-08 15:33:09 +02:00
Ludovic Stephan
b37e7c4c41
Migrations
2019-06-08 15:33:09 +02:00
Ludovic Stephan
29111059f9
Rajoute un manager à Participant
...
On rajoute un manager qui annote les querysets avec si le participant a payé ou non
2019-06-08 15:33:09 +02:00
Ludovic Stephan
9776a18e4c
Déplace les champs paid
et paymenttype
2019-06-08 15:33:09 +02:00
Martin Pepin
7f1adf7c4e
Merge branch 'Aufinal/can-delete-stuff' into 'master'
...
Délétions d'objets K-Fêt
See merge request klub-dev-ens/gestioCOF!359
2019-06-03 23:06:06 +02:00
Ludovic Stephan
56bc281b30
Utilise >= gnagnagna
2019-06-03 23:00:10 +02:00
Ludovic Stephan
c4948be1f7
Use http_methods_allowed attribute
2019-06-03 22:59:43 +02:00
Ludovic Stephan
f3dbb72f69
Consistency for on_delete attributes
2019-06-03 22:43:47 +02:00
Ludovic Stephan
173affd8eb
Fix another 2.2 deprecation
2019-06-03 20:42:21 +02:00
Ludovic Stephan
51fe9cc9f8
Changelog
2019-05-29 18:31:03 +02:00
Ludovic Stephan
d4be8b426e
Tests pour la suppression d'articles
2019-05-29 18:29:15 +02:00
Ludovic Stephan
65dd7e5fa3
Suppression d'article
...
On fait pareil que précédemment pour les articles, en rajoutant une vie
de délétion + de quoi afficher qu'un article a été supprimé.
N.B. : le formatage automatique de VSCode fait plein de changements,
donc pourquoi pas les garder.
2019-05-29 18:29:15 +02:00
Ludovic Stephan
123e2b84df
Rename view to fit conventions
2019-05-29 18:29:15 +02:00
Ludovic Stephan
f12370a6cd
Tests (!!)
2019-05-29 18:29:15 +02:00
Ludovic Stephan
52521e89a6
Add some restrictions on deletion
2019-05-29 18:29:15 +02:00
Ludovic Stephan
08ac0ac890
Vues de suppression
...
On rajoute un bouton de suppression d'un compte utilisable avec la perm
`kfet.delete_account`, avec message de vérif. On en profite pour
cleanup un peu le css de `jconfirm`.
2019-05-29 18:29:15 +02:00
Ludovic Stephan
63fff6ca7c
Setup deleted account
...
Pour pouvoir supprimer un compte, on crée un compte dummy qui a pour but
de recevoir les objets non supprimables (caisses, transferts/opérations
pour statistiques, etc.). Lors de la délétion d'un compte, tout est
transféré sur le dummy, qui est créé via migration.
2019-05-29 18:29:15 +02:00
Ludovic Stephan
85b1e974ff
Change deletion behaviour
...
Tous les `on_delete` étaient mis à PROTECT, ce qui faisait qu'on ne
pouvait rien supprimer... On les met à CASCADE pour tous les modèles
secondaires (`AccountNegative`, `CheckoutStatement`, `InventoryArticle`,
`SupplierArticle`, `Order` et `OrderArticle`) et pour les inventaires
créés à partir d'une commande.
Pour les modèles qui demandent une validation, et pour les `Operation`s,
on met à NULL le compte ou l'article associé (cela ne change pas le
total d'une opération, qui est la partie importante à garder).
2019-05-29 18:29:15 +02:00
Ludovic Stephan
3a5eceba83
Delete unused models
...
Certains modèles n'étaient pas utilisés dans le code, on en profite pour
les virer.
2019-05-29 18:29:15 +02:00
Ludovic Stephan
018865967d
Merge branch 'Aufinal/django2-urls' into 'master'
...
Passage à Django2
See merge request klub-dev-ens/gestioCOF!358
2019-05-29 17:13:25 +02:00
Ludovic Stephan
8dd003f81f
Changelog
2019-05-24 09:36:14 +02:00
Ludovic Stephan
f03e708280
Tiens, une migration Wagtail
2019-05-23 15:21:40 +02:00
Ludovic Stephan
198658f5f9
Misc fixes
...
- on vire un commentaire obsolète, et on en remet un à jour
- un peu de doc sur les converters
2019-05-21 15:30:51 +02:00
Ludovic Stephan
03c74a7940
Misc fixes
2019-04-17 20:50:49 +02:00
Ludovic Stephan
7717d1ed34
Backwards-incompatible changes : queryset in filter
2019-04-17 18:33:43 +02:00
Ludovic Stephan
72560397a2
Backwards-incompatible changes : renderer argument
2019-04-17 18:27:14 +02:00
Ludovic Stephan
413a9cddb1
Backwards-incompatible changes : manytomany set
2019-04-17 18:21:59 +02:00
Ludovic Stephan
4064218010
Forgot one import
2019-04-17 18:21:15 +02:00
Ludovic Stephan
a2fcc05672
Test fix : freeze psycopg2 version
2019-04-12 18:30:03 +02:00
Ludovic Stephan
8fc6f96324
Misc urlconf files
2019-04-12 17:07:03 +02:00
Ludovic Stephan
271732f40d
K-Fêt urlconf file + converter
2019-04-12 17:06:53 +02:00
Ludovic Stephan
019acb90ac
Global urlconf file
2019-04-12 17:06:43 +02:00
Ludovic Stephan
759b6d9489
Update settings ; remove debug_panel
2019-04-12 17:04:33 +02:00
Ludovic Stephan
f32e4a9b0d
Fix error
2019-04-12 17:03:42 +02:00
Ludovic Stephan
209cb1fbe5
Update requirements to Django 2.2
2019-04-12 17:03:20 +02:00
Ludovic Stephan
ceff3ed6c9
Merge branch 'Aufinal/django2-login' into 'master'
...
Préparation Django2 : vues de login/logout
See merge request klub-dev-ens/gestioCOF!357
2019-04-01 22:25:07 +02:00
Ludovic Stephan
2c49b25d59
Cleaner error code management
2019-03-25 23:30:55 +01:00
Ludovic Stephan
5f963d5451
Use get_user_model
2019-03-25 23:22:06 +01:00
Ludovic Stephan
a1ead1bfc8
Préparation Django2 : vues de login/logout
...
À partir de Django 2.1, les vues de login et logout sont class-based
uniquement. On passe donc à django-cas-ng 2.6 pour harmoniser.
On cleanup un peu le processus de login avec une classe un peu propre +
un vrai formulaire/des vrais templates.
2019-03-25 23:05:47 +01:00
Basile Clement
cef75e56d7
Merge branch 'Aufinal/django2-reverse-import' into 'master'
...
Préparation Django2 : fix des imports
See merge request klub-dev-ens/gestioCOF!356
2019-03-25 20:19:51 +01:00
Ludovic Stephan
8bfb8029b2
Changelog
2019-03-19 18:00:33 +01:00
Ludovic Stephan
fd0f387dbc
Merge branch 'Kerl/DJANGO_NO_DDT' into 'master'
...
Une variable d'environement pour désactiver la django debug toolbar
See merge request klub-dev-ens/gestioCOF!353
2019-03-19 17:59:39 +01:00
Ludovic Stephan
676239ad24
Remove urlresolvers
mentions in packages
...
On bump quelques versions, et on vire `django_debug_panel`
2019-03-19 17:16:57 +01:00
Ludovic Stephan
5fd4cb5c78
Change django.core.urlresolvers
imports
...
-- compatible with 1.11 --
2019-03-19 10:18:56 +01:00
Evarin
2b3a8760ff
Mise à jour du Changelog
2019-02-18 22:50:35 +01:00
Robin Champenois
0eccfcf886
Merge branch 'Aufinal/webfonts' into 'master'
...
Sert les polices en local
See merge request klub-dev-ens/gestioCOF!354
2019-02-18 22:40:10 +01:00
Ludovic Stephan
f90663bf97
Merge branch 'Evarin/Wagtail2' into 'master'
...
Migration vers Wagtail 2.3 et Wagtail-modeltranslation 0.9
See merge request klub-dev-ens/gestioCOF!349
2019-02-18 22:16:45 +01:00
Evarin
1043e5725a
Fix content-type fixtures K-Fêt
2019-02-18 21:54:26 +01:00
Ludovic Stephan
3bf0906697
Supprime une police inutilisée
2019-02-13 17:05:31 +01:00
Ludovic Stephan
85642d00d8
Sert les polices en local
2019-02-13 16:54:42 +01:00
Martin Pépin
fabb30cec2
add a DJANGO_NO_DDT env variable to disable ddt
2019-02-12 17:55:23 +01:00
Evarin
641bdd9464
Plus besoin de ça
2019-02-11 21:26:16 +01:00
Evarin
4f6579c3d1
Fixtures à jour pour Wagtail2 et wagtail-translation 0.9
2019-02-11 21:10:11 +01:00
Ludovic Stephan
1c45dd833d
Black + isort
2019-02-09 15:16:40 +01:00
Ludovic Stephan
f3117c9e69
Merge branch 'Elarnon/petitscours_edit' into 'master'
...
Quelques améliorations d'ergonomie sur les petits cours
See merge request klub-dev-ens/gestioCOF!350
2019-02-09 13:58:29 +01:00
Basile Clement
fc72425c05
Add note to changelog
2019-02-09 13:47:18 +01:00
Basile Clement
f74277af66
[petitscours] Ajoute un lien vers la liste des demandes
...
Ce patch ajoute un lien permettant de retourner sur la liste des
demandes à traiter depuis les pages de détail et de traitement d'une
demande. Idéalement, on voudrait plutôt une espèce de fil d'ariane.
2019-02-09 13:46:42 +01:00
Basile Clement
f64c7a6e69
[petitcours] Ajoute un lien pour modifier une demande
...
Ce patch ajoute un lien bidirectionnel entre la page d'affichage d'un
petit cours pour le Burô et l'administration générale. Plus
précisément,
- Un lien est ajouté sur la page du petit cours, ainsi que sur la page
de traitement, vers l'administration générale
- La fonctionalité "Voir sur le site" de Django est utilisée pour
renvoyer sur la page de la demande. Si des modifications sont
apportées, il faut choisir "Enregistrer et continuer les
modifications", puis cliquer sur "Voir sur le site".
Le workflow n'est pas forcément optimal, mais permet au COF d'accéder
facilement à la demande si un traitement manuel ou complexe est
nécessaire - et de facilement revenir à la vue de traitement.
2019-02-09 13:46:42 +01:00
Ludovic Stephan
73508c0251
Merge branch 'Kerl/localhost8000' into 'master'
...
Le vrai nom du site en dev c'est `localhost:8000` et pas `localhost`
See merge request klub-dev-ens/gestioCOF!351
2019-02-09 13:45:42 +01:00
Martin Pépin
2c4ba3258d
the actual (dev) domain name is localhost:8000
2019-02-09 13:39:46 +01:00
Evarin
0f1e05acdd
Migration vers Wagtail 2.3 et Wagtail-modeltranslation 0.9
...
Toutes les pages Wagtail doivent désormais être traduites
Suppression du modèle COFUtilPage devenu inutile
Réinitialisation des migrations de Wagtail à cause des changements de ModelTranslation
2019-02-04 22:56:48 +01:00
Ludovic Stephan
86dbdbd2b6
Merge branch 'Kerl/del_old_view' into 'master'
...
Supprime la vue bda.views.descriptions_spectacles
Closes #154
See merge request klub-dev-ens/gestioCOF!347
2019-02-04 21:43:14 +01:00
Martin Pépin
c134e1ae0f
remove unused template
2019-02-04 21:37:45 +01:00
Martin Pépin
abf05131d5
CHANGELOG: remove old bda view
2019-02-04 21:06:24 +01:00
Martin Pépin
869e634adb
remove bda.views.descriptions_spectacles
...
This view has been unused for a long time
It has been replace by bda.views.catalogue
2019-02-04 20:58:53 +01:00
Aurélien Delobelle
be155f2f2d
Merge branch 'Kerl/unique_login_clipper' into 'master'
...
Force l'unicité des clippers
See merge request klub-dev-ens/gestioCOF!346
2019-01-15 20:18:33 +01:00
Martin Pépin
68cead600f
CHANGELOG: clipper uniqueness
2019-01-14 23:12:29 +01:00
Martin Pépin
d85eeb5801
Enforce clipper uniqueness
2019-01-14 22:46:16 +01:00
Martin Pépin
2140a59777
add missing entries in the CHANGELOG file
2019-01-14 21:56:17 +01:00
Martin Pepin
512868ee14
Merge branch 'evarin/site-cof' into 'master'
...
Nouveau site du COF
See merge request klub-dev-ens/gestioCOF!247
2019-01-14 21:23:10 +01:00
Martin Pepin
d7d819dde0
Merge branch 'Aufinal/revente-cof-only' into 'master'
...
BdA-Revente n'est accessible qu'aux adhérents du COF
See merge request klub-dev-ens/gestioCOF!342
2019-01-14 20:30:33 +01:00
Martin Pepin
eb83c58f05
Merge branch 'Aufinal/prettify-revente' into 'master'
...
Rend BdA-Revente un peu plus joli
See merge request klub-dev-ens/gestioCOF!338
2019-01-13 14:29:48 +01:00
Martin Pepin
f883082814
Merge branch 'aureplop/lint-migrations' into 'master'
...
style: black
See merge request klub-dev-ens/gestioCOF!343
2019-01-13 14:05:32 +01:00
Aurélien Delobelle
b65d37b141
style: black
2019-01-13 13:56:03 +01:00
Ludovic Stephan
aa498e0261
BdA-Revente n'est accessible qu'au COF
2019-01-10 10:31:58 +01:00
Martin Pépin
670fda3c9c
migrations nécessaires en prod ?!? wtf
2019-01-07 23:30:56 +01:00
Martin Pépin
dd5d773405
add CHANGELOG
2019-01-07 23:11:57 +01:00
Ludovic Stephan
d08cec06d3
Merge branch 'master' into Aufinal/prettify-revente
2019-01-07 22:55:48 +01:00
Ludovic Stephan
1f3e65fa68
Fix javascript code
2019-01-07 22:52:18 +01:00
Ludovic Stephan
55c1d7f02c
Refactor templates
2019-01-07 22:51:02 +01:00
Ludovic Stephan
71cae7f5ca
Remove dead code
2019-01-07 22:50:30 +01:00
Ludovic Stephan
445745ee15
Merge branch 'master' into Aufinal/prettify-revente
...
Merge remote-tracking branch 'origin/master' into Aufinal/prettify-revente
2019-01-07 22:34:28 +01:00
Aurélien Delobelle
6e51ca749d
Merge branch 'Kerl/syncmails' into 'master'
...
On oublie l'argument de syncmail dans `prepare_django.sh`
See merge request klub-dev-ens/gestioCOF!340
2019-01-07 22:33:58 +01:00
Martin Pépin
babb458aa4
fix syncmail invocation in prepare_django.sh
2019-01-07 22:10:58 +01:00
Martin Pepin
288e3f15b6
Merge branch 'Aufinal/djdt_admin' into 'master'
...
Remove Django-debug-toolbar in admin interface
See merge request klub-dev-ens/gestioCOF!339
2019-01-07 20:58:55 +01:00
Ludovic Stephan
bb23c45fad
Remove Django-debug-toolbar in admin interface
...
La présence de DJDT sur l'interface admin multiplie par 100 environ
(sans exagération) les temps de chargement des pages, cause des 503, et
a une utilité au plus limitée. Cette MR vire donc l'addon de l'interface
admin.
2019-01-07 17:38:55 +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
ae0abb5cb3
Better JS for tables
2019-01-07 16:28:52 +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
a30955fb75
HTML corrections ; stupidtable injection
2019-01-07 14:58:31 +01:00
Ludovic Stephan
31223aaed9
Merge branch 'aureplop/kfet-tests_deterministic' into 'master'
...
kfet.tests -- Deterministic responses for cancel_operation
See merge request klub-dev-ens/gestioCOF!337
2019-01-07 14:12:41 +01:00
Aurélien Delobelle
5d14fef032
kfet.tests -- More isolated tests for kfet.open
2019-01-06 13:49:07 +01:00
Aurélien Delobelle
7ca0144004
kfet.tests -- Deterministic responses for cancel_operation
2019-01-06 13:49:07 +01:00
Ludovic Stephan
7c1d1df1a9
Merge branch 'aureplop/bda-tests_misc-views' into 'master'
...
bda.tests -- Add some tests for non-reventes views
See merge request klub-dev-ens/gestioCOF!326
2019-01-06 13:12:09 +01:00
Robin Champenois
a6bf1fc16a
Merge branch 'aureplop/site-cof' into 'evarin/site-cof'
...
evarin/site-cof: style -- black + isort
See merge request klub-dev-ens/gestioCOF!336
2019-01-06 12:02:31 +01:00
Aurélien Delobelle
84c88dfd5e
Merge branch 'master' into aureplop/site-cof
2019-01-06 00:56:21 +01:00
Aurélien Delobelle
39eaf4b109
style -- black + isort
2019-01-06 00:37:08 +01:00
Evarin
376cc96343
Clean, lint and fix little things
2019-01-06 00:17:57 +01:00
Martin Pepin
e0e75b53bb
Merge branch 'aureplop/ci_parallel' into 'master'
...
core.ci -- Run tests in parallel
See merge request klub-dev-ens/gestioCOF!327
2019-01-05 19:36:20 +01:00
Aurélien Delobelle
aba0be7960
kfet.test -- Isolate kfet_open in testcases to avoid cache collisions
2019-01-05 19:19:58 +01:00
Martin Pepin
a057776e1f
Merge branch 'aureplop/linters-for-petitscours' into 'master'
...
style -- Linters for petitscours, fix isort
See merge request klub-dev-ens/gestioCOF!335
2019-01-05 19:16:28 +01:00
Martin Pepin
e21154e869
Merge branch 'aureplop/kfet-tests_cancel_operations' into 'master'
...
kfet.tests -- Add tests for cancel_operations view + small things
See merge request klub-dev-ens/gestioCOF!315
2019-01-05 19:15:49 +01:00
Evarin
f105225abf
Commentaires dans le code
2019-01-05 18:50:53 +01:00
Aurélien Delobelle
debbf265c4
style -- Linters for petitscours, fix isort
2019-01-05 18:19:26 +01:00
Aurélien Delobelle
8db55d792c
core.ci -- Run tests in parallel
...
tblib displays traceback correctly with --parallel
2019-01-05 17:41:41 +01:00
Aurélien Delobelle
09e99ee3a3
bda.tests -- Add tests for descriptions_spectacles view
2019-01-05 15:28:11 +01:00
Aurélien Delobelle
3e38e48d7a
bda.tests -- Add tests for tirage inscription view
2019-01-05 15:28:11 +01:00
Aurélien Delobelle
1664554083
bda.tests -- Add Spectacle factories
2019-01-05 15:28:11 +01:00
Aurélien Delobelle
f8610d4ff1
bda.tests -- Split view tests and use shared test helpers
2019-01-05 15:28:11 +01:00
Aurélien Delobelle
a71fbb0ed3
tests -- Ignore url entries without name
2019-01-05 15:28:05 +01:00
Aurélien Delobelle
57a2af285a
bda -- Add name to bda url
2019-01-05 15:27:05 +01:00
Robin Champenois
e6e4a13440
Merge branch 'Elarnon/master' into 'master'
...
Ajoute une option "Master" pour les petits cours
See merge request klub-dev-ens/gestioCOF!334
2018-12-21 11:12:08 +01:00
Basile Clement
f9ddee60ed
Ajoute une option "Master" pour les petits cours
...
À la demande du COF, car il y a des parents qui demandent et illes se
retrouvent à changer les demande "Autres" en "Licence 3" via l'admin
Django. En pratique, il y aura sans doute très peu de profs qui
proposent des cours de Master (aussi appelé "le problème des gens qui
remplissent leurs compétences une seule fois en conscritude"); il
faudra donc tout de même laisser la possibilité au COF de changer
manuellement pour matcher avec "Licence 3", mais faisons une chose à la
fois. On pourrait aussi harceler les gens pour qu'illes mettent à jour
leurs compétences en début d'année (c'est-à-dire mettre un bandeau
temporaire pour leur rappeler que si illes mettent à jour leurs
compétences ça augmente leur chance d'obtenir des cours).
2018-12-10 20:54:39 +01:00
Ludovic Stephan
66104e1137
Black
2018-12-08 10:41:46 +01:00
Ludovic Stephan
15ab316909
Merge branch 'master' into Aufinal/prettify-revente
2018-12-08 10:40:10 +01:00
Ludovic Stephan
6be42d57ca
Prettify revente/shotgun
2018-12-07 17:35:53 +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
dee2f4badc
Merge branch 'Elarnon/petitscours_proposals_cleanup' into 'master'
...
[petitscours] Extrait la proposition de profs dans une méthode
See merge request klub-dev-ens/gestioCOF!332
2018-12-03 21:15:17 +01:00
Martin Pepin
633cd49094
Merge branch 'Elarnon/cofburo_required' into 'master'
...
Améliore l'ergonomie de `cof_required` et `buro_required`
See merge request klub-dev-ens/gestioCOF!333
2018-11-27 10:13:32 +01:00
Martin Pepin
d58d08a4d4
Merge branch 'Elarnon/petitscours_app' into 'master'
...
Extrait les petits cours dans une application séparée
See merge request klub-dev-ens/gestioCOF!331
2018-11-26 23:00:56 +01:00
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
2b8f81c94b
[petitscours] Extrait la proposition de profs dans une méthode
...
Ce patch simplifie le code (dupliqué) de calcul des proposition de profs
pour une demande dans une méthode du modèle`Demande`, et l'utilise. Il
s'agit d'un préparatif pour #208 ; ce code devra être réutilisé dans le
nouveau système.
J'en ai également profité pour nettoyer deux vues de `petitscours`,
`retraitement` et `demande_raw`, qui dupliquaient les vues `traitement`
et `demande`, en utilisant des arguments nommés.
petitscours/
* models.py:
Définition de `get_proposals` pour calculer les propositions de
profs pour une demande.
* views.py:
Utilise `get_proposals` à la place du code copié-collé. La fonction
`_finalize_traitement` est maintenant responsable du calcul des
`proposed_for` et `attribdata` à fournir aux templates.
* urls.py:
Passe directement les arguments aux vues plutôt que de faire deux
fonctions séparées.
2018-11-25 17:05:55 +01:00
Basile Clement
c960d97b67
Extrait les petits cours dans une application séparée
...
L'application `petitscours` reste assez fortement couplée à
`gestioncof`, et n'est pas (encore ?) faite pour être utilisée
séparément.
De façon similaire, et afin de minimiser de potentiels problèmes dûs à
des migrations, les modèles de l'application `petitscours` utilisent
`app_label = "gestioncof"` pour que Django les considère comme faisant
partie de l'application `"gestioncof"`. Ils pourront être migrés dans
un second temps si cela s'avère nécessaire.
Les changements sont nombreux, mais assez simples: il s'agit
principalement de déplacer des fichiers et changer des imports. J'ai
également profité de l'occasion pour réorganiser les templates afin de
les placer dans l'espace de nom "petitscours/".
cof/
* settings/common.py: Add `petitscours` app
* urls.py: Use `petitscours.urls`
petitscours/
* __init__.py: Added.
* tests/__init__.py: Added.
* tests/utils.py: Added.
* urls.py: Added.
gestioncof/
* admin.py:
* management/commands/loaddevdata.py:
* models.py:
* signals.py: Typo.
* urls.py:
Moved petitscours_patterns to petitscours.urls
* petits_cours_forms.py:
Moved to petitscours/forms.py
* petits_cours_models.py:
Moved to petitscours/models.py
* petits_cours_views.py:
Moved to petitscours/views.py
* tests/utils.py:
* tests/test_petitscours_views.py:
Moved to petitscours/tests/test_petitscours_views.py
* templates/base_title_petitscours.html:
Moved to petitscours/templates/petitscours/base_title.html
* templates/demande-petit-cours.html:
Moved topetitscours/templates/petitscours/demande.html
* templates/gestioncof/details_demande_petit_cours.html:
Moved to petitscours/templates/petitscours/demande_detail.html
* templates/petits_cours_demandes_list.html:
Moved to petitscours/templates/petitscours/demande_list.html
* templates/demande-petit-cours-raw.html:
Moved to petitscours/templates/petitscours/demande_raw.html
* templates/details_demande_petit_cours_infos.html:
Moved to petitscours/templates/petitscours/details_demande_infos.html
* templates/inscription-petit-cours.html:
Moved to petitscours/templates/petitscours/inscription.html
* templates/inscription-petit-cours-formset.html:
Moved to petitscours/templates/petitscours/inscription_formset.html
* templates/gestioncof/traitement_demande_petit_cours.html:
Moved to petitscours/templates/petitscours/traitement_demande.html
* templates/gestioncof/traitement_demande_petit_cours_autre_niveau.html:
Moved to petitscours/templates/petitscours/traitement_demande_autre_niveau.html
* templates/gestioncof/traitement_demande_petit_cours_success.html:
Moved to petitscours/templates/petitscours/traitement_demande_success.html
2018-11-25 13:25:16 +01:00
Ludovic Stephan
d82c9baf20
Bump django-redis-cache
version to 1.8.1
...
The `django-redis` package does not work with redis 3.0, and previous
versions of this package did not hardcode the version number.
2018-11-25 00:48:57 +01:00
Ludovic Stephan
4ae0b3c5f0
Merge branch 'aureplop/cof-tests_petitcours' into 'master'
...
petitcours.tests -- Add tests for some views
See merge request klub-dev-ens/gestioCOF!325
2018-11-25 00:41:51 +01:00
Basile Clement
4e34583e3f
black
2018-11-25 00:23:43 +01:00
Basile Clement
a2116bf290
Merge branch 'master' into aureplop/cof-tests_petitcours
2018-11-25 00:22:16 +01:00
Basile Clement
d48cb3aaed
petitcours.tests -- Deplace les tests dans leur propre fichier
2018-11-25 00:22:12 +01:00
Ludovic Stephan
dbd017f680
Prettify revente/subscribe
2018-11-21 19:47:20 +01:00
Martin Pépin
712588af7d
Merge branch 'master' into evarin/site-cof
2018-11-19 23:30:33 +01:00
Robin Champenois
6524f89ebd
Merge branch 'Elarnon/bda_tirage_message_d_erreur_quand_il_y_a_une_erreur' into 'master'
...
Affiche un message d'erreur lors de l'enregistrement des voeux BDA
See merge request klub-dev-ens/gestioCOF!330
2018-11-12 23:22:38 +01:00
Basile Clement
7f2f25cb71
Isort
2018-11-12 23:04:37 +01:00
Basile Clement
042ce80b78
Run black
2018-11-12 22:52:20 +01:00
Basile Clement
d7f4d32c92
Oh mon dieu!
2018-11-12 22:46:02 +01:00
Basile Clement
b80927efa3
Message d'erreur qui ne parle pas de object Voeu
2018-11-12 22:44:09 +01:00
Basile Clement
511981e762
Simplifie la Logique
2018-11-12 22:22:49 +01:00
Basile Clement
e09fa2b847
Affiche un message d'erreur lors de l'enregistrement des voeux BDA
...
Voir #203
2018-11-12 22:16:43 +01:00
Robin Champenois
39d82a573f
Merge branch 'Elarnon/autoriser_la_suppression_dun_voeud_bda_qui_nexiste_pas' into 'master'
...
Permet la suppression d'un voeu ajouté mais non enregistré
See merge request klub-dev-ens/gestioCOF!329
2018-11-12 22:03:07 +01:00
Basile Clement
7124821f7c
Permet la suppression d'un voeu ajouté mais non enregistré
...
Voir #203 . Cette solution est horrible, tout comme le code dans
lequel elle se trouve. Déso pas déso.
2018-11-12 21:56:40 +01:00
Ludovic Stephan
ba21de683b
Merge branch 'Elarnon/cas_v3_v2' into 'master'
...
Fix CAS support in python-cas 1.3+
See merge request klub-dev-ens/gestioCOF!328
2018-11-12 21:09:14 +01:00
Basile Clement
00a1e79af6
Fix CAS support in python-cas 1.3+
...
cas.eleves.ens.fr has /serviceValidate, not /p3/serviceValidate, and is
thus *probably* a V2 CAS server. python-cas was broken and using
/serviceValidate for V3 while it should have been /p3/serviceValidate,
see
c3ac4b6c76
2018-11-12 00:54:44 +01:00
Ludovic Stephan
95ba7798d7
Ignore VSCode files
2018-11-04 23:07:57 +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
Aurélien Delobelle
49a74e8e1e
Merge branch 'Kerl/syncmails' into 'master'
...
Utilisation de la command `syncmails` du package custommail
See merge request cof-geek/gestioCOF!323
2018-10-21 14:22:59 +02:00
Aurélien Delobelle
b69f1b6dbc
kfet.tests -- Add tests for cancel_operations view
2018-10-21 13:07:44 +02:00
Aurélien Delobelle
d7ca072af3
kfet.tests -- Add factories for many kfet models
...
- Article
- ArticleCategory
- Checkout
- CheckoutStatement
- Inventory
- InventoryArticle
- Operation
- OperationGroup
2018-10-21 12:50:09 +02:00
Aurélien Delobelle
928abc5a06
core -- Bump version django-djconfig to 0.8.0
...
Bump djcondig to last version.
Previously used version was failing on some updates, e.g:
kfet_config.set(cancel_duration=timedelta(minutes=15))
2018-10-21 12:50:09 +02:00
Aurélien Delobelle
0ba7100110
Merge branch 'aureplop/ci-move-services' into 'master'
...
core.ci -- Fix CI (postgres version) + speed up job "linters"
See merge request cof-geek/gestioCOF!324
2018-10-21 12:49:25 +02:00
Aurélien Delobelle
b795a06b9c
core.ci -- Use postgres version of production server
2018-10-21 12:33:58 +02:00
Aurélien Delobelle
e478beee5c
core.ci -- Narrow services to jobs that need them
2018-10-21 12:33:54 +02:00
Evarin
128a9e32c0
I18n des menus
2018-10-14 16:29:26 +02:00
Evarin
1e3850bb6b
Nettoyage dates et calendrier
2018-10-14 15:50:55 +02:00
Martin Pepin
7f5a442bae
Merge branch 'Aufinal/annul_reventes' into 'master'
...
Annulation des reventes
Closes #191
See merge request cof-geek/gestioCOF!297
2018-10-07 12:16:07 +02:00
Martin Pépin
9da9649a45
Use the syncmail command as defined in custommail
2018-10-07 00:55:54 +02:00
Martin Pépin
1f350d60dd
Merge branch 'master' into Aufinal/annul_reventes
2018-10-07 00:34:36 +02:00
Aurélien Delobelle
26b19685b8
Merge branch 'Kerl/fix-pre-commit' into 'master'
...
Autre idée pour réparer le hook de pre-commit
See merge request cof-geek/gestioCOF!322
2018-10-07 00:09:13 +02:00
Martin Pépin
2c0ab1e55e
use xargs to prevent globbing in pre-commit.sh
2018-10-07 00:06:51 +02:00
Martin Pepin
b86f3113ea
Merge branch 'aureplop/bda-test_silence' into 'master'
...
bda.tests -- Silence syncmails in setup
See merge request cof-geek/gestioCOF!320
2018-10-06 17:47:54 +02:00
Aurélien Delobelle
aac9b41442
bda.tests -- Silence syncmails in setup
2018-10-06 17:39:52 +02:00
Martin Pepin
ec287c8a3b
Merge branch 'aureplop/linters' into 'master'
...
core -- Add and apply black, flake8, isort to CI and pre-commit
Closes #200
See merge request cof-geek/gestioCOF!317
2018-10-06 16:10:33 +02:00
Aurélien Delobelle
fc4b852bde
Merge branch 'Kerl/linters' into 'aureplop/linters'
...
Script de pre-commit plus robuste
See merge request cof-geek/gestioCOF!319
2018-10-06 16:04:36 +02:00
Martin Pépin
9bc3355a21
pre-commit hook: fix shellcheck's SC2086 & SC2181
2018-10-06 15:50:49 +02:00
Martin Pépin
61fbf0bc80
typo
2018-10-06 15:45:32 +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
Aurélien Delobelle
104e71dcf6
core -- Add black,isort,flake8 to CI and pre-commit hook
...
On CI:
- black and isort in check mode must pass.
- flake8 only prints errors
WIP: make it also failed.
On pre-commit:
- black and isort will format staged files, if installed on path.
- flake8 prints its output if necessary.
2018-10-06 12:53:50 +02:00
Aurélien Delobelle
b23810917d
core -- Remove not working cache of py installed packages...
...
... and use env var for pip install location.
2018-10-06 11:54:18 +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
dda803b7d5
Merge branch 'aureplop/ci-disable-coverage-in-gitlab' into 'master'
...
core -- Disable coverage in GitLab CI
See merge request cof-geek/gestioCOF!318
2018-10-06 10:14:35 +02:00
Aurélien Delobelle
cc4e3223b6
core -- Disable coverage in GitLab CI
2018-10-05 23:36:59 +02:00
Martin Pepin
39abfceb76
Merge branch 'aureplop/kfet-tests_perform_operations' into 'master'
...
kfet.tests -- Add tests for perform_operations view + small things
See merge request cof-geek/gestioCOF!313
2018-10-04 23:59:30 +02:00
Martin Pepin
56d979bb47
Merge branch 'aureplop/add-codecoverage-to-ci' into 'master'
...
core -- Add code coverage to CI
See merge request cof-geek/gestioCOF!314
2018-10-04 19:06:57 +02:00
Aurélien Delobelle
6c5b7ed5cc
core -- Update CI badge for current GitLab version
2018-10-04 11:36:45 +02:00
Aurélien Delobelle
7e55bf0cb1
core -- Add code coverage to CI
2018-10-04 11:36:45 +02:00
Aurélien Delobelle
507a59c914
kfet.tests -- Add tests for perform_operations view
2018-10-04 11:25:10 +02:00
Aurélien Delobelle
22011faba9
kfet -- Init KFetConfig, even without request, for easy testing
2018-10-04 11:25:10 +02:00
Aurélien Delobelle
0f688a8f1c
kfet -- Stack errors of KPsulOperationForm
...
Delete an error never raised, and avoid duplicate messages.
2018-10-04 11:25:10 +02:00
Aurélien Delobelle
93d3c124fd
kfet -- Add fixme related to available checkouts in K-Psul
2018-10-04 11:25:10 +02:00
Martin Pepin
ec29e6ef5c
Merge branch 'aureplop/kfet-tests_remove-unused-views' into 'master'
...
kfet -- Remove unused view
See merge request cof-geek/gestioCOF!312
2018-10-03 23:07:04 +02:00
Aurélien Delobelle
79c26c9dd6
kfet -- Remove unused view
2018-10-01 15:37:41 +02:00
Aurélien Delobelle
44af796e73
Merge branch 'Kerl/tests' into 'master'
...
Quelques tests pour les vues BdA
See merge request cof-geek/gestioCOF!280
2018-09-30 13:39:22 +02:00
Aurélien Delobelle
6858df02be
bda.tests -- Use urllib urlencode
2018-09-30 13:22:22 +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
a750c62baf
New year, new promotion: 2018
2018-09-02 23:27:21 +02:00
Martin Pépin
19c51c6a3a
Merge branch 'Kerl/unernestaparis'
2018-09-02 23:27:05 +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 Pepin
a8bfedb28b
Merge branch 'Kerl/ci-py35' into 'master'
...
Utilise python 3.5 dans l'intégration continue
See merge request cof-geek/gestioCOF!306
2018-09-02 18:24:24 +02:00
Martin Pepin
92ca838601
Merge branch 'Kerl/changeemail' into 'master'
...
Les membres peuvent changer leur adresse email
See merge request cof-geek/gestioCOF!305
2018-09-02 18:24:03 +02:00
Martin Pépin
66184fbee6
CI: set python version to 3.5
2018-08-05 18:34:05 +02:00
Martin Pépin
898a354c2d
Members can change their registration email
2018-08-05 18:11:10 +02:00
Evarin
954a6fdb53
Wagtail requirement update
2018-06-30 15:52:58 +02:00
Evarin
6d6ba70bd7
CSS++
2018-06-30 15:38:12 +02:00
Ludovic Stephan
e515a55956
Merge branch 'aureplop/194-kfet_edit-account' into 'master'
...
kfet -- As a kfet staff, remove the requirement to…
Closes #194
See merge request cof-geek/gestioCOF!303
2018-06-16 17:13:17 +02:00
Aurélien Delobelle
645c01ebd1
kfet -- As a kfet staff, remove the requirement to…
...
provide a password in the edit view of an account.
2018-06-16 12:33:51 +02:00
Martin Pépin
68e71317cb
Hotfix: broken urls for mailing lists
2018-06-01 17:08:24 +02:00
Martin Pepin
96416bffea
Merge branch 'Aufinal/fix-revente-transfer' into 'master'
...
Fix le transfert des reventes
See merge request cof-geek/gestioCOF!302
2018-05-30 10:19:16 +02:00
Ludovic Stephan
12ae10f2c4
Fix le transfert des reventes
...
Il y avait une typo qui causait une erreur quand on voulait transférer
une revente.
2018-05-30 10:13:37 +02:00
Martin Pepin
af817534e4
Merge branch 'Aufinal/autocomplete-js' into 'master'
...
Fix autocomplete K-Psul
See merge request cof-geek/gestioCOF!301
2018-05-29 15:52:43 +02:00
Ludovic Stephan
837b48af36
Fix js path for autocomplete
2018-05-29 14:39:29 +02:00
Martin Pepin
c7cdf29129
Merge branch 'Kerl/issue193' into 'master'
...
Issue193 : lien cassé sur K-Psul
Closes #193
See merge request cof-geek/gestioCOF!300
2018-05-28 13:55:13 +02:00
Martin Pépin
7e9df3fc72
hotfix: wrong url name
2018-05-28 00:09:30 +02:00
Martin Pépin
b0301f0304
fix slugurl name error
2018-05-28 00:07:34 +02:00
Martin Pépin
2a9125ffaa
resolve migration conflict
2018-05-24 21:23:46 +02:00
Martin Pépin
483f192af3
Merge branch 'Production'
2018-05-24 21:23:01 +02:00
Martin Pepin
20cc2e7345
Merge branch 'aureplop/captcha' into 'master'
...
Upgrade to reCAPTCHA v2
Closes #192
See merge request cof-geek/gestioCOF!299
2018-05-14 17:55:37 +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
Evarin
6d72644ee3
Clean code up
2018-04-28 15:59:49 +02:00
Martin Pépin
e21666a112
Fix old-style urls (registration)
2018-04-16 16:34:34 +02:00
Ludovic Stephan
f85d51e3bd
Merge branch 'Kerl/drop_py2_compat' into 'master'
...
Suppression des derniers vestiges de la compatibilité python 2
Closes #103
See merge request cof-geek/gestioCOF!278
2018-04-16 15:21:00 +02:00
Martin Pepin
2818e43b2e
Merge branch 'Kerl/readme' into 'master'
...
Recommande l'installation manuelle dans le README
See merge request cof-geek/gestioCOF!298
2018-04-16 14:24:55 +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
2faa8d6b65
README: typo, some links, …
2018-04-14 23:11:14 +02:00
Martin Pépin
769f4fc7b8
README: mention the test database and unit tests
2018-04-14 14:15:29 +02:00
Martin Pépin
dd9a81d891
Update install instructions
2018-04-14 14:00:37 +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
Martin Pépin
6168045c3a
bda: swap double/autoquit descriptions
2018-04-09 22:43:25 +02:00
Martin Pepin
6c983e16e5
Merge branch 'Roussille/bda' into 'master'
...
autorisation des requêtes cross-domain
See merge request cof-geek/gestioCOF!253
2018-04-08 22:43:30 +02:00
Martin Pépin
a7cd1e04cd
prefer CORS_ORIGIN_WHITELIST to CORS_ORIGIN_REGEX_WHITELIST
2018-04-08 22:33:19 +02:00
Martin Pépin
09cfcc476a
Bump django-cors-headers
2018-04-08 22:32:59 +02:00
Martin Pépin
556c354f8a
Merge branch 'master' into Roussille/bda
2018-04-08 22:30:48 +02:00
Martin Pepin
25f4c64835
Merge branch 'Aufinal/bda_fixes' into 'master'
...
Fix pour BdA-Revente
See merge request cof-geek/gestioCOF!263
2018-04-07 14:55:33 +02:00
Martin Pépin
87a6722143
Merge branch 'master' into Aufinal/bda_fixes
2018-04-07 14:46:07 +02:00
Martin Pépin
568a58c52a
Merge branch 'qwann/separate_list'
2018-04-07 14:25:04 +02:00
Martin Pépin
53a4c78903
Remove duplicate line
2018-04-07 14:21:07 +02:00
Martin Pépin
158b19778b
also sort the unsold table
2018-04-07 14:20:41 +02:00
Martin Pépin
6d0ec6de43
Merge branch 'master' into qwann/separate_list
2018-04-07 14:09:48 +02:00
Martin Pepin
9d7486585b
Merge branch 'aureplop/kfet-sticky_thead' into 'master'
...
kfet -- Tables are sortable
Closes #171
See merge request cof-geek/gestioCOF!277
2018-04-07 13:47:55 +02:00
Martin Pépin
71b4e6253d
Merge branch 'master' into aureplop/cof-tests_calendar
2018-04-07 13:42:19 +02:00
Martin Pépin
fba105fdd1
Merge branch 'master' into aureplop/kfet-sticky_thead
2018-04-07 13:32:20 +02:00
Martin Pépin
7512454825
Merge branch 'master' into aureplop/cof-tests_registration
2018-04-07 13:20:33 +02:00
Martin Pepin
3463017d59
build status in README.me
2018-04-07 12:54:50 +02:00
Martin Pepin
9986cb1dc7
Merge branch 'aureplop/cof-tests_misc' into 'master'
...
cof -- Add tests for some views
See merge request cof-geek/gestioCOF!292
2018-04-07 12:46:25 +02:00
Martin Pépin
71a61fe31d
Merge branch 'master' into aureplop/cof-tests_misc
2018-04-07 12:41:42 +02:00
Martin Pepin
0cceed9052
Merge branch 'aureplop/cof-tests_export' into 'master'
...
cof -- Add tests for export views
See merge request cof-geek/gestioCOF!291
2018-04-07 12:15:06 +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 Pepin
2d14296c47
Merge branch 'aureplop/cof-tests_club' into 'master'
...
cof -- Add tests for club views
See merge request cof-geek/gestioCOF!289
2018-04-07 10:54:31 +02:00
Martin Pépin
660f395b67
Merge branch 'master' into aureplop/cof-tests_club
2018-04-07 10:49:52 +02:00
Martin Pepin
f23d351ddc
Merge branch 'aureplop/cof-tests_calendar' into 'master'
...
cof -- Add tests for calendar views
See merge request cof-geek/gestioCOF!290
2018-04-07 10:33:35 +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 Pepin
16d7b4f7c0
Merge branch 'aureplop/cof-tests_event' into 'master'
...
cof -- Add tests for event views
See merge request cof-geek/gestioCOF!286
2018-04-06 00:24:23 +02:00
Martin Pépin
bf464f9378
Merge branch 'master' into aureplop/cof-tests_event
2018-04-06 00:16:08 +02:00
Martin Pépin
35e17a81a6
New year -> new promo -> migration in k-fet
2018-04-05 23:48:53 +02:00
Qwann
cc27e4d964
show not sold article in a different list
2018-03-22 15:25:03 +01:00
Evarin
3d091f50b5
Suppr captcha page, ajout block iframe
2018-03-21 21:53:48 +01:00
Evarin
347497602c
Revert urls prefixing
2018-02-20 17:21:26 +01:00
Evarin
6d6c995563
Fixtures fonctionnelles
2018-02-20 17:13:21 +01:00
Martin Pepin
307c48ca76
Merge branch 'elarnon/fix-182' into 'master'
...
Properly propagate the default number of places in tirage
Closes #182
See merge request cof-geek/gestioCOF!295
2018-02-20 14:40:20 +01:00
Martin Pepin
cadbd1b7c2
Merge branch 'elarnon/compat_fixes' into 'master'
...
Various fixes for Django 1.11
See merge request cof-geek/gestioCOF!294
2018-02-20 14:38:21 +01:00
Martin Pepin
746c5e2053
Merge branch 'elarnon/bash_set_e' into 'master'
...
Make provisioning script stop immediately on errors
See merge request cof-geek/gestioCOF!293
2018-02-20 14:36:28 +01:00
Basile Clement
6ecc9a54b3
Properly propagate the default number of places in tirage
...
Fixes #182 .
2018-02-11 19:24:01 +01: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
Basile Clement
ac1a57d969
Make provisioning script stop immediately on errors
...
By default, bash will ignore any failing commands and happily proceed to
execute the next ones. This is usually not the behavior the we want in
provisioning script (or ever in scripts, actually): if one step of the
provisioning fails, it doesn't make much sense to proceed with the
following ones.
This simple patch uses `set -e` to ask bash to abort the whole script if
any command within it fails, leading to outputs that are easier to parse
since the commands following a failing one will usually fail also,
hiding the root cause.
2018-02-11 17:01:26 +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
Martin Pepin
d88ce44989
Merge branch 'aureplop/fix-autocomplete-js' into 'master'
...
Fix autocomplete in registration views.
See merge request cof-geek/gestioCOF!288
2018-02-05 22:49:18 +01:00
Martin Pepin
c94a9ecb44
Merge branch 'aureplop/kfet_initial-statement' into 'master'
...
kfet -- Create initial statement on checkout save
See merge request cof-geek/gestioCOF!283
2018-02-05 22:42:04 +01:00
Martin Pépin
d57c75d2a0
Minor simplificatons after code review
2018-02-05 22:36:08 +01:00
Martin Pepin
a3295ca6a3
Merge branch 'aureplop/fix-184' into 'master'
...
Fix available checkouts in K-Psul
Closes #184
See merge request cof-geek/gestioCOF!282
2018-02-05 22:35:04 +01:00
Martin Pepin
09433f6f15
Merge branch 'aureplop/speed-up-tests' into 'master'
...
Speed up tests in dev (×40)
See merge request cof-geek/gestioCOF!281
2018-02-05 22:18:52 +01:00
Martin Pepin
8c68270a4d
Merge branch 'aureplop/Kerl/drop_py2_compat' into 'Kerl/drop_py2_compat'
...
Py3 allows to shorten super()
See merge request cof-geek/gestioCOF!284
2018-02-05 22:14:04 +01:00
Evarin
63ce694b4d
Fix dependency
2018-02-03 22:39:50 +01:00
Evarin
59116f2d46
International wagtail urls
2018-02-03 22:34:37 +01:00
Evarin
88e911ff9d
Fixtures mises à jour
2018-01-28 23:45:46 +01:00
Evarin
ba87044638
Calendrier dynamique + sympa + jolies dates
2018-01-28 23:44:48 +01:00
Evarin
f8952225d6
Apparence et Responsiveness
2018-01-28 19:10:14 +01:00
Evarin
c11ccf2ecc
Tri des annuaires
2018-01-28 19:09:35 +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
Evarin
8488beeb4e
Un seul modèle pour les actus
2018-01-22 21:24:20 +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
80ca35a4c0
Add helper to check HttpResponse containing csv
2018-01-22 14:49:02 +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
Aurélien Delobelle
7e0ecd8e0f
Add assertion to check ical data is as expected
2018-01-21 18:17:26 +01:00
Aurélien Delobelle
bbe46645f7
cof -- Fix the club list view
2018-01-20 22:24:25 +01:00
Aurélien Delobelle
a5071aa257
cof -- Add tests for club views
2018-01-20 22:24:13 +01:00
Evarin
8551ffcfd3
Merge branch 'master' into evarin/site-cof
2018-01-20 19:37:12 +01:00
Evarin
ea495e8f29
Archives beta
2018-01-20 19:33:50 +01:00
Aurélien Delobelle
4084444dc3
Fix autocomplete in registration views.
...
django-autocomplete-light v3.x doesn't include anymore the
$('').yourlabsAutocomplete() function, leading to issues in cof
registration and kfet account creation views.
Adding jquery-autocomplete-light fixes these issues.
See:
- (dal) https://github.com/yourlabs/django-autocomplete-light
- (jal) https://github.com/yourlabs/jquery-autocomplete-light
2018-01-20 17:29:15 +01:00
Aurélien Delobelle
7bf2f73e72
Merge branch 'aureplop/cof_tests' into aureplop/cof-tests_registration
2018-01-20 17:02:54 +01:00
Aurélien Delobelle
c239f28f17
syncmails should be able to be silent
2018-01-20 17:02:23 +01:00
Aurélien Delobelle
0921f32e4c
cof -- Fix urls naming related to registration
2018-01-20 16:17:57 +01:00
Aurélien Delobelle
7160a9c954
cof -- Add tests for registration views
2018-01-20 16:14:55 +01:00
Aurélien Delobelle
dfb9ccb0af
Fix use of Widget.build_attrs in TriStateCheckbox
...
Signature changed in Django 1.11.
2018-01-19 18:41:06 +01:00
Aurélien Delobelle
a6f52cfdc5
cof -- Fix urls naming in event template
2018-01-19 18:38:34 +01:00
Aurélien Delobelle
f5b280896f
cof -- Add tests for event views
2018-01-19 18:36:03 +01:00
Aurélien Delobelle
ce73499077
Fix use of Widget.build_attrs in TriStateCheckbox
...
Signature changed in Django 1.11.
2018-01-19 18:15:57 +01:00
Aurélien Delobelle
8675948d9e
cof -- Fix urls naming in survey templates
2018-01-19 18:01:36 +01:00
Aurélien Delobelle
57de31d59a
cof -- Add tests for survey views
2018-01-19 17:57:43 +01:00
Aurélien Delobelle
776ff28141
cof -- Add helpers to test cof views.
2018-01-19 17:52:08 +01:00
Aurélien Delobelle
42e762bc4a
Py3 allows to shorten super()
2018-01-16 16:50:27 +01:00
Aurélien Delobelle
478f56d94b
kfet -- Create initial statement on checkout save
...
- Why? Because it should be the actual behavior.
- To allow using arithmetic operations with values of DecimalField when
object are not retrieved from DB, some strings are replaced by Decimal
or int.
If you wonder why it's not automatically done, see:
https://code.djangoproject.com/ticket/27825
2018-01-16 16:49:02 +01:00
Aurélien Delobelle
525bb4d16d
kfet -- Fix available checkouts in K-Psul
...
The checkout validity is checked using the current datetime (when
requesting the kpsul page).
2018-01-15 17:03:57 +01:00
Aurélien Delobelle
e23e1bdba6
kfet -- Add test to check the choices of checkouts in K-Psul
...
Particularly, it adds a regression test for #184 .
2018-01-15 17:01:06 +01:00
Aurélien Delobelle
6059ca067b
Speed up tests
...
~20% less using MD5 and force_login in kfet testcase.
~77% less by disabling the debug tollbar.
2018-01-15 05:41:51 +01:00
Martin Pépin
79fccc136a
Merge branch 'master' into Kerl/tests
2018-01-10 20:21:38 +01:00
Ludovic Stephan
52fd49616d
Fix model test
2018-01-10 20:14: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
91119f68bc
Ne pas oublier avant de passer en prod…
2018-01-10 17:34:41 +01:00
Aurélien Delobelle
44eee9be38
Merge branch 'aureplop/py34-compat' into 'master'
...
py34 compat
See merge request !279
2018-01-10 17:30:44 +01:00
Aurélien Delobelle
f58f120e7a
py34 compat
...
(already present in prod)
2018-01-10 17:25:07 +01:00
Martin Pepin
771b642a98
Merge branch 'aureplop/revente-reply_to' into 'master'
...
bda -- Set winner's email as Reply-to of the email…
Closes #179
See merge request !276
2018-01-07 16:03:20 +01:00
Martin Pépin
5086128f16
Fix ill-formed url in tests
2018-01-07 14:45:04 +01:00
Martin Pépin
c80e63415b
Load custommails before bda tests
2018-01-07 14:30:33 +01:00
Martin Pépin
e9b901337e
A few tests for BdA views
2018-01-07 13:35:23 +01:00
Martin Pepin
433b3f4716
Merge branch 'aureplop/1.11' into 'master'
...
Upgrade to Django 1.11
See merge request !275
2018-01-06 17:00:28 +01:00
Martin Pépin
62d8c2ffaf
remove @py2_unicode_compat + six
2018-01-06 16:10:13 +01:00
Martin Pépin
97eed06b6f
Remove builtins imports
2018-01-06 16:10:13 +01:00
Martin Pépin
57411ab46f
Remove __future__ imports
2018-01-06 16:10:13 +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
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
dfa8c1a1a1
Merge branch 'Aufinal/bda_fixes' of git.eleves.ens.fr:cof-geek/gestioCOF into Aufinal/bda_fixes
2017-12-19 11:54:07 +01:00
Ludovic Stephan
5f9f222cda
Merge branch 'Kerl/bda_fixes' into 'Aufinal/bda_fixes'
...
Kerl/bda fixes
See merge request !273
2017-12-19 11:53:31 +01:00
Ludovic Stephan
212528011a
Add some tests
2017-12-19 11:40:02 +01:00
Aurélien Delobelle
32720c56a6
kfet -- Tables are sortable
...
Many tables in kfet app templates become sortable:
account list, negative account list, article list, article inventory
list, article supplier list, article category list, checkout list,
checkout statement list, inventory list, inventory details, order list,
order creation, order details.
This is achieved thanks to the jQuery plugin 'tablesorter':
https://mottie.github.io/tablesorter/docs/
- Affected tables also got sticky headers (it stays visible on scroll).
- Dates format are modified in order to ease the date sorting with the
plugin (it avoids writing a custom parser, or an extractor from
additional hidden element in the table cells).
- Tables whose content is classified by category (of articles) now uses
several tbodies. This has minor effects on the tables style.
- Tags of the header help signs become 'i', instead of 'span', in order
to avoid weird spacing.
2017-11-27 18:24:22 +01:00
Aurélien Delobelle
241c77e3b4
bda -- Set winner's email as Reply-to of the email…
...
…sent to the seller when a resale has been assigned.
Fixes #179 .
2017-11-24 06:58:33 +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
Aurélien Delobelle
36ce038050
Merge branch 'Qwann/legibility_kfet' into 'master'
...
Qwann/legibility kfet
See merge request !272
2017-11-10 14:54:17 +01:00
Martin Pépin
91bdf11852
Coding style: python's scope sucks
2017-11-01 17:29:38 +01:00
Martin Pépin
f18959c0a1
BdA-Revente: meaningful names, some help tests
2017-11-01 17:26:40 +01:00
Martin Pépin
e1794a654f
Merge branch 'master' into Aufinal/bda_fixes
2017-11-01 11:25:52 +01:00
Martin Pépin
273e6374ef
Pluralization in bda -> participant list
2017-11-01 11:09:35 +01:00
Qwann
93fa79128c
order table striped
2017-10-31 15:10:21 +01:00
Martin Pepin
19e6ddc8bf
Merge branch 'aureplop/delete-kfet-globalperms' into 'master'
...
Delete GlobalPermissions model (migrations)
See merge request !270
2017-10-27 10:04:17 +02:00
Aurélien Delobelle
895f7e062c
Delete GlobalPermissions model (migrations)
...
It is an old model which doesn't exist anymore in kfet.models module.
This adds its missing DeleteModel in migrations.
2017-10-27 03:38:28 +02:00
Martin Pépin
1c90d067fa
Make cof.settings a module
2017-10-26 18:13:09 +02:00
Ludovic Stephan
785555c05c
Misc fixes
2017-10-26 12:40:11 +02:00
Aurélien Delobelle
364648fb4f
Merge branch 'Kerl/cours' into 'master'
...
initialisation des compteurs d'attributions de petits cours et settings.EMAIL_HOST
Ce patch règle deux problèmes en prod + un bug seulement présent en dev :
- Mauvaise initialisation des compteurs d'attributions de petits cours lors de la création d'un matière (premier compteur lié à cette matière)
- absence de `EMAIL_HOST` dans les settings => problèmes en production : la valeur par défaut `localhost` n'est pas satisfaisante.
- Il manquait un `Type` de variable dans la fixture des mails auto (dev seulement, visiblement pas de souci en production).
See merge request !265
2017-10-26 01:57:01 +02:00
Martin Pépin
1a136088bf
Add missing type in custommail (dev only)
2017-10-25 22:08:29 +02:00
Martin Pépin
40abe27e81
EMAIL_HOST needs to be set but as a secret
2017-10-25 22:05:14 +02:00
Martin Pépin
a07b5308a3
PetitCoursAttributionCounter defaults to 0
2017-10-25 22:01:58 +02:00
Aurélien Delobelle
8e8e9aa076
Fix migration history
2017-10-24 19:25:20 +02:00
Aurélien Delobelle
53ef8b517a
Merge branch 'test/views'
2017-10-24 18:01:49 +02:00
Aurélien Delobelle
af3a7cf697
Reapply fix to kfetauth (…) and fix tests
2017-10-24 17:56:14 +02:00
Aurélien Delobelle
1cc51f17a3
Prevent connection to LDAP when settings is None
2017-10-24 17:55:02 +02:00
Aurélien Delobelle
8673da1874
Fix migration conflict
2017-10-24 16:52:57 +02:00
Aurélien Delobelle
8b1f174b13
manage.py is executable
2017-10-24 16:46:15 +02:00
Aurélien Delobelle
8cdb4c62fc
Merge branch 'master' into test/views
2017-10-24 16:45:26 +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
684603709e
Class attributes and properties + more verbose log
...
SpectacleRevente gets brand new properties and attributes to simplify
code ; also, manage_reventes command output is more verbose
2017-10-23 20:30:34 +02:00
Ludovic Stephan
1b0e4285ec
Reverse match fix
2017-10-23 20:26:07 +02:00
Ludovic Stephan
919bcd197d
Small code QoL improvements
2017-10-23 18:59:30 +02:00
Ludovic Stephan
e74dbb11f1
Organize revente files and function names
2017-10-23 18:39:45 +02:00
Ludovic Stephan
732e47707e
Add unsubscribe option + list of current draws
2017-10-23 17:25:58 +02:00
Evarin
adf43889e1
Fixtures site cof
2017-10-23 11:05:49 +02:00
Martin Pepin
cb820e1414
Merge branch 'aureplop/fix-tirage-pk-conflict' into 'test/views'
...
Fix tirage pk conflicts with postgres
See merge request !262
2017-10-18 11:40:02 +02:00
Aurélien Delobelle
46187659ed
Fix tirage pk conflicts with postgres
2017-10-17 14:42:39 +02:00
Martin Pépin
fccad5edee
rename root -> kfet_genericteam in fixtures
2017-10-16 14:31:02 +02:00
Martin Pépin
b9aaea0f99
Merge branch 'master' into Production
2017-10-16 14:26:05 +02:00
Martin Pepin
47e48e36b2
Merge branch 'aureplop/fix-unreachable-objects-form-creation' into 'test/views'
...
Fix fields cleaning with unreachable items when…
See merge request !260
2017-10-12 19:21:16 +02:00
Aurélien Delobelle
85657591f5
Fix fields cleaning with unreachable items when…
...
… object is being created.
2017-10-12 11:10:30 +02:00
Aurélien Delobelle
c59bc487c3
Merge branch 'test/views__' into test/views
2017-10-11 23:35:38 +02:00
Aurélien Delobelle
f4a7e9dbf1
Verbosity should stay calm.
2017-10-11 23:34:43 +02:00
Aurélien Delobelle
03deb54d92
Merge branch 'Kerl/fix-JSONField-exn' into 'master'
...
djangorestframework 3.7 breaks with Django 1.8
See merge request !259
2017-10-11 23:18:05 +02:00
Martin Pépin
3b1d8487e2
Merge branch 'aureplop/kfet-auth_backends'
2017-10-11 22:59:28 +02:00
Martin Pépin
f8bb5b081e
Merge branch 'Kerl/fix-JSONField-exn' into test/views
2017-10-10 21:37:40 +02:00
Martin Pépin
3f6c5be748
Upgrade python packages before testing
2017-10-10 21:27:15 +02:00
Martin Pépin
e0ab7f5f94
Fix migration conflict
2017-10-10 21:21:28 +02:00
Martin Pépin
116b4da1a5
Merge branch 'test/views_kfet' into test/views
2017-10-10 21:15:49 +02:00
Martin Pépin
29ef297b2a
try to set the redis password…
2017-10-10 21:14:52 +02:00
Martin Pépin
503b305299
djangorestframework 3.7 breaks with Django 1.8
...
JSONField doesn't exist in Django 1.8
2017-10-10 18:34:18 +02:00
Martin Pépin
3d22a1b029
Merge branch 'master' into test/views
2017-10-10 15:39:18 +02:00
Martin Pépin
528532cca7
Merge branch 'aureplop/fix-ci'
2017-10-10 15:35:22 +02:00
Martin Pépin
4d1cb3c2d7
Set password for redis in CI
2017-10-10 15:26:14 +02:00
Evarin
5a22b1cd37
Affichage des actus
2017-10-10 11:22:02 +02:00
Aurélien Delobelle
57a143e0e1
Merge branch 'PEI' into 'master'
...
Statut PEI + cotisation gratuite
See merge request !258
2017-10-06 11:06:44 +02:00
Martin Pépin
435e211b3d
Add a "PEI" status + "Gratis" subscription fees
2017-10-02 13:58:52 +02:00
Aurélien Delobelle
596868f5b6
plop
2017-09-30 03:03:48 +02:00
Evarin
0e19abb51a
Cleaner homepage
2017-09-27 23:58:50 +02:00
Martin Pépin
b73faa3b84
Merge branch 'master' into Production
2017-09-25 18:40:00 +02:00
Martin Pepin
22413d861c
Merge branch 'aureplop/fix-attributions-admin' into 'master'
...
Fix attribution inlines of participant in admin
See merge request !255
2017-09-25 18:38:05 +02:00
Aurélien Delobelle
d18fb86a98
Fix attribution inlines of participant in admin
2017-09-25 18:26:54 +02:00
Aurélien Delobelle
b42452080f
Mass cleaning of kfet' authentication machinery
...
AccountBackend
- Should now work if used in AUTHENTICATION_BACKENDS settings.
- It does not retieve itself the password, as it should not be used
this way.
GenericBackend
- Delete useless 'username' arg of its 'authenticate()' method.
- Now delete the token in DB.
TemporaryAuthMiddleware
- New name of the middleware is more meaningful.
- Is now responsible to retrieve the password from the request, instead
of the AccountBackend.
GenericTeamToken model
- Add a manager' method to create token, avoiding possible error due to
unicity constraint.
GenericLoginView (authentication with the kfet generic user)
- Replace obscure system with a 100% HTTP handling.
- See comments for more information.
Misc
- More docstrings!
- More tests!
- Add some i18n.
- Add kfet/confirm_form.html template:
Ask user to confirm sth via a form (which will send a POST request).
Context variables:
* title: the page title
* confirm_url: action attribute for <form>
* text: displayed confirmation text
- kfet.js : Add functions allowing to emit POST request from <a> tag.
- Non-link nav items from kfet navbar also get a 'title'.
- A utility has been found for the 'sunglasses' glyphicon!
2017-09-25 17:57:47 +02:00
Aurélien Delobelle
11e8cb1be2
Merge branch 'bdaAdminHotfix' into 'master'
...
Hotfix : répare l'admin, le champ "given" n'était pas affiché quand il faut
See merge request !254
2017-09-25 15:01:28 +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
3fa7754ff4
KFet Backends inherit from BaseKFetBackend
...
Users who authenticate via a KFetBackend got extra select related.
It should save 2 db queries on each request for these users.
2017-09-23 20:48:28 +02:00
Aurélien Delobelle
e5d19811e8
Clean code related to kfet password
2017-09-22 23:31:46 +02:00
Aurélien Delobelle
1d19d1797c
Clean setup/retrieve of kfet generic account
2017-09-22 01:24:44 +02:00
Martin Pépin
6f2652c485
Prod quick hack for Mega export
2017-09-20 18:23:36 +02:00
Martin Pépin
d89ba1efe5
Fix catalogue behaviour if id=0
2017-09-20 18:21:59 +02:00
Martin Pépin
4091185a68
import LDAP_SERVER_URL in settings
2017-09-20 18:19:15 +02:00
Aurélien Delobelle
bf61e41b50
Move auth-related from 'kfet' app to 'kfet.auth'.
2017-09-19 17:05:51 +02:00
Hugo Roussille
a4eedbc1a6
Whitelist bda and cof apps for cross-domain
2017-09-13 18:21:34 +02:00
Hugo Roussille
4bd2562edf
django-cors-headers for cross-domain AJAX
2017-09-13 15:57:57 +02:00
Martin Pepin
7d16001ee5
Merge branch 'aureplop/fix_kfet_perms' into 'master'
...
K-Fêt' groups edits don't remove non-kfet app permissions.
Closes #168
See merge request !252
2017-09-12 22:35:30 +02:00
Martin Pépin
1921f05eba
Move STATIC_ROOT in production
2017-09-12 09:22:54 +02:00
Martin Pépin
368ee3190f
Update CI: use postgres
2017-09-12 00:14:52 +02:00
Aurélien Delobelle
9e61887868
K-Fêt' groups edits don't remove non-kfet app permissions.
...
Fixes #168 .
2017-09-11 16:42:14 +02:00
Martin Pépin
faed7bff73
fix ?next=… on K-Fêt logout
2017-09-10 02:32:21 +02:00
Martin Pepin
f581279825
Merge branch 'aureplop/fix-kfet-navbar' into 'master'
...
Fix kfet navbar on small devices
See merge request !248
2017-09-10 02:12:49 +02:00
Martin Pépin
937a485704
Merge branch 'master' into Production
2017-09-09 22:03:32 +02:00
Martin Pépin
439f49c3ba
We ♥ hardcoding stuff…
2017-09-05 15:21:19 +02:00
Martin Pépin
35b352ac1d
Fix mistake introduced in 51f4bf3fb5
2017-09-04 14:50:12 +02:00
Martin Pépin
50432d969f
Update available promos for account creation
2017-09-04 13:25:45 +02:00
Martin Pépin
51f4bf3fb5
Clipper logins may be > 8 characters
2017-09-04 13:25:09 +02:00
Aurélien Delobelle
fb5ba5fb1b
Fix kfet navbar on small devices
2017-09-03 14:42:38 +02:00
Aurélien Delobelle
af97c0cda6
Improve users management on kfet TestCase, and Py34 compat
2017-09-01 16:37:14 +02:00
Aurélien Delobelle
997b63d6b6
More docs for kfet.tests.utils
2017-09-01 13:35:32 +02:00
Aurélien Delobelle
7d490f0253
Merge branch 'test/views' into test/views_kfet
2017-09-01 12:41:31 +02:00
Aurélien Delobelle
5220bb75d0
Merge branch 'test/views_kfet' of git.eleves.ens.fr:cof-geek/gestioCOF into test/views_kfet
2017-09-01 12:40:37 +02:00
Aurélien Delobelle
d8391e54a5
Add docs to kfet TestCases
2017-09-01 12:39:17 +02:00
Martin Pepin
b7502e51ed
Merge branch 'aureplop/amend_supplier_model' into 'test/views_kfet'
...
Most data of suppliers should be optionnal.
See merge request !246
2017-08-30 20:32:43 +02:00
Aurélien Delobelle
be1e67626c
Most data of suppliers should be optionnal.
2017-08-30 15:35:20 +02:00
Martin Pepin
0afbd577b1
Merge branch 'aureplop/fix_view_account_search' into 'test/views_kfet'
...
View 'search account' should be restricted.
See merge request !245
2017-08-29 20:41:49 +02:00
Martin Pepin
afda1ba2ca
Merge branch 'test/views_fix_msg' into 'test/views'
...
Fix kfet.open.tests
See merge request !241
2017-08-29 20:39:31 +02:00
Martin Pepin
6e140e540d
Merge branch 'aureplop/fix_perms_settings' into 'test/views_kfet'
...
Fix kfet config-related permissions
See merge request !244
2017-08-29 20:37:48 +02:00
Evarin
38af50a866
Nouvelles couleurs
2017-08-29 17:58:44 +02:00
Evarin
7853987ebb
Plus de templates, plus joli
2017-08-26 18:05:20 +02:00
Evarin
09e63bf00c
Actus et listes de clubs plus jolies et fonctionnelles, calendriers (beta)
2017-08-22 00:58:18 +02:00
Evarin
53658589f8
Nouvelles couleurs, Plus de templates, Calendrier (sommaire)
2017-08-20 00:39:19 +02:00
Evarin
f5778fed2a
Modèles plus cleans et templates principaux
2017-08-19 01:32:26 +02:00
Evarin
66fc364739
Ignore sass cache
2017-08-19 01:29:45 +02:00
Aurélien Delobelle
b4338ce8db
View 'search account' should be restricted.
2017-08-16 22:54:40 +02:00
Aurélien Delobelle
22d8317dee
Fix kfet.open.tests
...
Due to messages sent in signals handlers, the tests were failing.
2017-08-16 22:43:52 +02:00
Aurélien Delobelle
b4b15ab371
Tests of kfet config views pass
2017-08-16 22:30:17 +02:00
Aurélien Delobelle
414b0eb433
Add missing perms to view/edit kfet config
2017-08-16 21:28:16 +02:00
Aurélien Delobelle
a3bb9852be
Merge branch 'master' into test/views
2017-08-16 18:28:59 +02:00
Aurélien Delobelle
2cfce1c921
Add tests for kfet views.
...
kfet.tests.testcases embed mixins for TestCase:
- TestCaseMixin provides assertion helpers,
- ViewTestCaseMixin provides a few basic tests, which are common to
every view.
kfet.tests.utils provides helpers for users and permissions management.
Each kfet view get a testcase (at least very basic) in
kfet.tests.test_views.
2017-08-16 17:45:59 +02:00
Aurélien Delobelle
343b52f986
Merge branch 'master' into test/views_kfet
2017-08-14 21:18:46 +02:00
Aurélien Delobelle
1d9310236b
Merge branch 'Kerl/setup' into 'master'
...
Setup de développement local
Développement sans Vagrant
- Ajoute un fichier de settings pour développer en local sans vagrant :
'cof/settings/local.py'. Il s'agit du fichier utilisé par défaut
si 'DJANGO_SETTINGS_MODULE' n'est pas dans l'environnement.
- Simplifie le README en conséquence.
Vagrant
La conf de production étant en cours de modification, on répercute ici
certaines de ces modifications.
- Front server: passe à nginx (à la place de apache).
- DB: passe à postgresql (à la place de mysql).
- La conf nginx sert le site (port 8080) derrière '/gestion/', à
l'exception des fichiers 'static' et 'media'.
- Ajout de `SERVER_EMAIL` dans les secrets pour pouvoir l'éditer en
production.
- Changement de `STATIC_ROOT` en production.
See merge request !242
2017-08-13 21:17:26 +02:00
Martin Pépin
2a519bfedf
Add SCRIPT_NAME to the production-like server
2017-08-13 14:36:45 +01:00
Martin Pépin
4c08962e09
Hide more stuff in secret.py
2017-08-13 13:39:13 +01:00
Martin Pépin
4d026407d1
Quicker setup for local development
2017-08-11 23:56:02 +01:00
Martin Pépin
5923166196
Specify the full path of the sqlite database
2017-08-11 17:24:09 +01:00
Martin Pépin
853fa57ce4
In README.md: typo env -> venv
2017-08-11 15:45:19 +01:00
Martin Pépin
522acafb2e
Add python dependency for Debian9
2017-08-10 16:56:20 +01:00
Martin Pépin
dae418af3d
Handle websockets in nginx.conf
2017-08-10 16:56:03 +01:00
Martin Pépin
73296ea251
Setup django before launching daphne + Django
2017-08-10 16:55:36 +01:00
Martin Pépin
4075fcaa64
typo
2017-08-10 16:35:41 +01:00
Martin Pépin
bd1dace8e8
Fix symlink for secret.py
2017-08-10 16:31:09 +01:00
Aurélien Delobelle
c9aac8a49d
[WIP] Tests for kfet views
2017-08-10 15:02:08 +02:00
Martin Pépin
ad15c45237
Switch to nginx + postgres in vagrant
2017-08-09 22:18:26 +01:00
Martin Pépin
cb1d253517
Local development settings
...
- Add a new settings file for local development
- Update README.md according to the new setup
2017-08-09 22:17:27 +01:00
Evarin
6023211ab0
Models des pages et traductions
2017-08-09 00:07:56 +02:00
Martin Pépin
a6b0c51d39
Add SERVER_EMAIL to the secrets
2017-08-08 00:25:13 +01:00
Martin Pépin
81f3d6ab81
Move STATIC_ROOT in production
2017-08-08 00:24:00 +01:00
Martin Pépin
062f547315
Use the right python interpreter in the cron tasks
2017-08-08 00:19:47 +01:00
Martin Pépin
784513b3cc
Use utf8 encoding for the mysql database
2017-08-08 00:12:09 +01:00
Martin Pépin
88597e62f1
More verbose secret error reporting
2017-08-08 00:06:03 +01:00
Martin Pépin
e13d68a127
Ignore PyCharm's files
2017-08-08 00:03:08 +01:00
Evarin
65d7a66eb8
Début nouveau site cof
2017-08-07 23:31:27 +02:00
Aurélien Delobelle
878c617cc7
fix PermConsumerMixin
2017-06-25 22:29:12 +02:00
Martin Pépin
68c1b45342
Add missing migrations
2017-06-25 16:30:49 +01:00
Martin Pepin
d30b36269a
Merge branch 'aureplop/kfet_cms' into 'master'
...
Add Wagtail CMS for kfet app.
See merge request !237
2017-06-25 16:47:48 +02:00
Aurélien Delobelle
455b730cc3
Merge branch 'master' into aureplop/kfet_cms
2017-06-23 02:53:05 +02:00
Martin Pepin
b49d96d18f
Merge branch 'aureplop/kfet_open' into 'master'
...
La K-Fêt est-elle ouverte ?
See merge request !239
2017-06-23 00:28:58 +02:00
Aurélien Delobelle
815ba50603
fix for small devices
2017-06-22 16:59:41 +02:00
Aurélien Delobelle
5673fabeff
Better status management.
...
Status is mainly computed in Python. That fix inconsistent datetime between
client and server.
Client only receives status and keep timestamp of last received ws msg.
2017-06-22 16:36:08 +02:00
Aurélien Delobelle
19847ac9d8
add token check to raw_open edit view
2017-06-22 15:48:45 +02:00
Aurélien Delobelle
98f5f0c391
update refresh/unknown interval
2017-06-22 05:44:05 +02:00
Aurélien Delobelle
782e105644
typo
2017-06-21 23:31:27 +02:00
Aurélien Delobelle
b8110c11a4
kfet.open
...
kfet.open app
- Base data (raw_open, last_update...) is stored and shared through cache system.
- 2 websockets groups: one for team users, one for other users.
- UI is initialized and kept up-to-date with WS.
- raw_open and force_close can be updated with standard HTTP requests.
At this time, there isn't any restriction on raw_open view. Common sense tell us
to change this behavior.
Misc
- Clean channels routing.
- 'PermConsumerMixin': user who sent the message is available as argument in
connection_groups method, which returns groups to which the user should be
appended on websocket connection (and discarded on disconnection).
- New kfet.utils module: should be used for mixins, whatever is useful and not concerns
the kfet app.
- Clean JS dependencies.
2017-06-21 07:08:28 +02:00
Aurélien Delobelle
2381af92e3
Merge branch 'master' into aureplop/kfet_open
2017-06-21 05:47:53 +02:00
Aurélien Delobelle
398893b904
Merge branch 'Kerl/mail2bda' into 'master'
...
Copie des mails de rappel pour le BdA
* Le BdA est en copie des mails de rappel (création d'un utilisateur générique BdA à cette fin)
* Un lien vers la page d'envoi manuel des mails de rappel est ajouté à la page qui récapitule les situations des participants au spectacle
* Quelques modification mineures de cette page
* Un test très simple vérifie que les pages mentionnées plus haut sont accessibles à un utilisateur COF authentifié
See merge request !238
2017-06-21 05:43:42 +02:00
Martin Pepin
539c32dbbe
Merge branch 'aureplop/fix_cache' into 'master'
...
Configure un système de cache
See merge request !221
2017-06-20 15:53:29 +02:00
Martin Pépin
80f6a808dc
Simplify the mails-rappel view
2017-06-18 17:03:50 +01:00
Martin Pépin
69aee6b8ac
Move bda.get_generic_user + optimize send_rappels
2017-06-18 16:52:53 +01:00
Aurélien Delobelle
ec59bc2edc
Merge branch 'master' into aureplop/kfet_open
2017-06-12 15:18:42 +02:00
Aurélien Delobelle
d004287957
Merge branch 'master' into aureplop/kfet_cms
2017-06-12 02:04:28 +02:00
Aurélien Delobelle
1499c0bced
Improvements for K-Fêt CMS.
...
K-Fêt - Wagtail
- Page content becomes a StreamField.
- GroupTeam snippet becomes a block for stream field.
- Navigation menu moved becomes a "flatmenu", preventing possible future conflicts.
- Page layout can be modified in wagtail admin.
K-Fêt
- Add shorthands for ukf account balance/article price.
- Cleaning stylesheets and templates.
2017-06-12 01:51:10 +02:00
Martin Pépin
5c11893059
Add a link to the "bda-rappel" mail edition page
2017-06-02 19:33:23 +01:00
Martin Pépin
4fce1e8afc
typo
2017-06-02 19:14:10 +01:00
Martin Pépin
ffb777a4cd
Test the "participants" views
2017-06-02 19:14:10 +01:00
Martin Pépin
76c75d5ccd
Move bda-participant template -> bda/ folder
2017-06-02 19:14:10 +01:00
Martin Pépin
fbdfdeef46
Add a link to the reminder emails sending page
2017-06-02 19:14:09 +01:00
Martin Pépin
31c034a96a
send_rappel: use django messages + css tweaks
2017-06-02 19:14:06 +01:00
Martin Pépin
2a3614540f
minor PEP8 changes
2017-06-02 17:32:23 +01:00
Martin Pépin
0e03fc85ee
The BdA receives the reminder emails
2017-06-02 17:25:04 +01:00
Aurélien Delobelle
6e82a2cf88
minor fix
2017-05-31 22:00:51 +02:00
Aurélien Delobelle
5bed02c3fc
Merge branch 'Kerl/banner' into 'master'
...
Add an announcement banner
Closes #151
See merge request !236
2017-05-30 23:35:08 +02:00
Aurélien Delobelle
8c6d56b27c
Add Wagtail CMS for kfet app.
...
K-Fêt
- Integrate wagtail to serve "static" pages of old K-Fêt website
- Fixture "kfetcms/kfet_wagtail_17_05" contains a copy of old website
(as in May 2017).
- Media files can be got until end of June 17 at
http://partage.eleves.ens.fr//files/604e6dea2ceebc66b1936c6b3f911744/kfet_media.tar.gz
Login/logout
- Update package django_cas_ng to last version.
- Clean COFCASBackend.
- Change CAS version to 3 (version used on eleves.ens). This enables
the logout redirection (for CAS ofc).
- Add messages and clean existing ones on login/logout (for both
outsider and cas users).
Misc
- Update settings to bypass an incompability between debug-toolbar and
wagtailmenus packages.
- Better management of dev/test-specific urls (if debug-toolbar wasn't in
INSTALLED_APPS, media files were not served).
- UI improvements.
2017-05-30 20:44:30 +02:00
Martin Pépin
ea21b07657
Add an announcement banner
2017-05-25 23:58:59 +01:00
Martin Pepin
b13e992a30
Merge branch 'aureplop/clean_scroll' into 'master'
...
Misc UI
Closes #90 and #115
See merge request !225
2017-05-25 23:03:40 +02:00
Aurélien Delobelle
0815c96c1c
Merge branch 'Kerl/postgres' into 'master'
...
Préparation au passage à postgres
- Suppression du champ num du modèle CofProfile.
- Suppression des LOCK (spécifique MySQL).
- Le code devient compatible avec tous les backends supportés par Django.
- Suppressions de code servant à la compatibilité python2.
- Corrige le message de succès à la fin de l'inscription. Celui-ci ne prenait pas en compte le statut is_cof à jour du profil.
See merge request !234
2017-05-23 22:50:10 +02:00
Martin Pépin
3a69c3371f
Simple test: we can query the account-read page
2017-05-23 20:38:53 +01:00
Martin Pépin
74135f8877
enhance User.__str__ with get_full_name
2017-05-23 16:50:43 +01:00
Martin Pepin
92c946a286
Merge branch 'aureplop/clean_perms' into 'master'
...
Clean K-Fêt permissions
See merge request !235
2017-05-23 17:40:58 +02:00
Aurélien Delobelle
1d269ef4f9
Update migration to keep perms.
...
If content type for old kfet.GlobalPermissions exists:
- custom permissions related to this content type are updated to new content types,
- then we can safely remove this content type.
2017-05-23 16:48:33 +02:00
Aurélien Delobelle
cd5a2e0591
Move K-Fêt global permissions.
2017-05-23 13:47:40 +02:00
Martin Pépin
3c8f1c58c5
Use transaction.atomic instead of lock_table
...
lock_table used LOCK which is mysql-specific
2017-05-23 05:58:09 +01:00
Martin Pépin
f0f1585661
Registration: remove success var, fix message
...
`member.profile` was not up-to-date where we used to send the success
message => move it to the place where the success var is set tu `True`
and remove the success var was which becomes irrelevant.
2017-05-23 05:41:57 +01:00
Aurélien Delobelle
a36d002b17
Merge branch 'Kerl/apt_upgrade' into 'master'
...
Upgrade apt packages while provisioning
See merge request !233
2017-05-22 15:08:16 +02:00
Martin Pépin
3762b38afe
Remove useless pip upgrade in bootstrap.sh
2017-05-22 10:29:38 +01:00
Martin Pépin
dba8a0a857
Remove the num field in CofProfile
2017-05-22 01:00:32 +01:00
Martin Pépin
76dcaf7d51
drop py2 compat
2017-05-21 23:58:44 +01:00
Martin Pépin
17b140fb12
Upgrade apt packages while provisioning
2017-05-21 18:42:30 +01:00
Aurélien Delobelle
e60e347a53
Add base templates to extend
...
- kfet/base_col_1.html for one column content.
- kfet/base_col_2.html for two columns content (left for fixed content,
right for main content).
2017-05-20 13:57:21 +02:00
Aurélien Delobelle
1845ce825f
jpp
...
Fixes #90
2017-05-19 20:13:36 +02:00
Aurélien Delobelle
109a692cea
Order creation improvements.
...
- colspan takes into account the scale length.
- add box_capacity
2017-05-19 17:55:31 +02:00
Aurélien Delobelle
c0b8430a12
Better scale management for order creation
...
+ Extends labels formatting of scale.
2017-05-19 17:40:06 +02:00
Aurélien Delobelle
c11c3f84ed
clean big tables forms
2017-05-19 16:42:26 +02:00
Aurélien Delobelle
4344b7d537
chrome support
2017-05-19 15:13:27 +02:00
Aurélien Delobelle
0995f712ca
clean hover/focus/disabled btn
2017-05-19 14:48:57 +02:00
Aurélien Delobelle
ecce2fda21
Merge branch 'master' into aureplop/clean_scroll
2017-05-19 14:08:57 +02:00
Aurélien Delobelle
51dca32d05
shorter transitions
2017-05-19 14:01:13 +02:00
Aurélien Delobelle
ae27065626
Group permissions select multiple -> checkboxes
...
- Add handler for CheckboxSelectMultiple in form_field_snippet.html.
- Add template filter "widget_type" to get widget class name.
- Group permissions selection becomes easier.
2017-05-19 13:42:41 +02:00
Aurélien Delobelle
e9073e2265
Improve multiple select inputs
...
+ Group edition form gains success message, is prettier
+ Fix: K-Fêt prefix for group name on this form
2017-05-18 21:41:23 +02:00
Aurélien Delobelle
1a661c1fd3
revert
2017-05-18 20:29:29 +02:00
Aurélien Delobelle
5776c81764
Clean navbar + content_center only
...
- Add css transitions on buttons + navbar links.
- Clean css of navbar.
- Clean templates with only centered form/content.
- Page opened when login as generic team user close itself (only for
non-CAS users).
- A message is added when generic team user connects.
- Fix extra space on right when messages are prompted.
2017-05-18 20:17:05 +02:00
Aurélien Delobelle
95a8b484e0
Merge branch 'Aufinal/fix_history' into 'master'
...
Fix asynchronous calls with resetSettings
See merge request !229
2017-05-15 23:43:28 +02:00
Ludovic Stephan
647b32e727
Move displayAddcost function
2017-05-15 17:52:49 -03:00
Martin Pepin
6871945dcd
Merge branch 'aureplop/fix_perms' into 'master'
...
Fix UserGroupForm
Closes #161
See merge request !228
2017-05-15 11:29:33 +02:00
Ludovic Stephan
bf0e345301
Fix asynchronous calls with resetSettings
...
The `resetSettings` function now returns the ajax object, allowing to
chain other calls to it, e.g. the `getHistory` function.
2017-05-14 23:50:09 -03:00
Aurélien Delobelle
e0b1db1e1e
more robust tests
2017-05-14 22:19:25 +02:00
Martin Pepin
5d8427e601
Merge branch 'aureplop/fewer_requests' into 'master'
...
Moins de requêtes
See merge request !217
2017-05-12 21:13:35 +02:00
Aurélien Delobelle
4ac7b30bdd
Fix UserGroupForm + tests for this form.
...
- Non-K-Fêt group membership is no longer erased by the account edit
form.
- Add some tests to ensure proposed choices in this form corresponds to
K-Fêt groups + test case for #161 .
Fixes #161
2017-05-12 16:55:18 +02:00
Aurélien Delobelle
b1e46792c8
(little) cleaning of order_create view
2017-05-10 13:11:47 +02:00
Aurélien Delobelle
b0e7ebfbc5
fix typo + pep8 + del future imports
2017-05-10 12:49:14 +02:00
Aurélien Delobelle
6cdb791989
fix class name conflicts
2017-05-10 12:39:56 +02:00
Aurélien Delobelle
e7266e7a9d
use new settings for redis
2017-04-26 11:28:18 +02:00
Aurélien Delobelle
673dc0295d
Merge branch 'master' into aureplop/fix_cache
2017-04-26 11:22:29 +02:00
Aurélien Delobelle
4ed5128829
Merge branch 'Kerl/settings2' into 'master'
...
Add settings for redis and fix settings handling in the provisioning script
See merge request !227
2017-04-26 11:19:44 +02:00
Martin Pépin
fb4258f821
Set the redis passwd properly in bootstrap.sh
2017-04-25 20:23:51 +01:00
Martin Pépin
dbff7740c8
Add REDIS_PORT to the settings and secrets
2017-04-25 20:23:21 +01:00
Ludovic Stephan
5c5fc6da1b
Merge branch 'aureplop/less_prices_history' into 'master'
...
Less articles prices history
Closes #142
See merge request !224
2017-04-25 14:32:18 +02:00
Martin Pépin
52d9979d7c
Fix settings in the provisioning script
2017-04-24 22:17:41 +01:00
Martin Pépin
2aee43e01a
Add more configuration options for redis
...
- `REDIS_HOST` can be specified in the secrets
- Two new secrets: `REDIS_PASSWD` and `REDIS_DB`
2017-04-24 22:17:41 +01:00
Aurélien Delobelle
739990cdb6
Add total boxes to new inventory view + fix/clean
...
- Add total boxes in cellar and bar to new inventory view.
- On this view, table is "minified".
- Revert background color for some templates.
- Clean some margin (responsively).
- Clean tab pills on account read.
2017-04-22 01:17:23 +02:00
Aurélien Delobelle
6de0844d28
Merge branch 'master' into aureplop/clean_scroll
2017-04-21 22:28:22 +02:00
Aurélien Delobelle
0d8a613f28
improve bda inscription form/view code
2017-04-21 18:22:53 +02:00
Aurélien Delobelle
2eee8f58aa
Merge branch 'master' into aureplop/fewer_requests
2017-04-17 20:45:01 +02:00
Aurélien Delobelle
8622002e8d
minor change
2017-04-17 20:40:54 +02:00
Aurélien Delobelle
dbf5844f6a
Clean settings redis
2017-04-15 14:41:55 +02:00
Aurélien Delobelle
e772d12721
Merge branch 'master' into aureplop/fix_cache
2017-04-15 14:27:20 +02:00
Aurélien Delobelle
a0fe94e2f4
Merge branch 'Kerl/settings' into 'master'
...
New organisation of settings files
- common.py: the settings that are shared by all the environments we have + the secrets (see below).
- dev.py: the settings used by the vagrant VM for local development.
- prod.py: the production settings (for both www.cof.ens.fr and dev.cof.ens.fr)
- secret.py: some settings like the SECRET_KEY or the database's credentials are loaded from an untracked file called secret.py in the same directory. This secrets are loaded by the common settings file.
See merge request !222
2017-04-15 14:25:47 +02:00
Aurélien Delobelle
ce23eece6a
Fix display on small screen devices.
...
- Remove useless margin on small screens.
- Better pills display on small screens.
- Revert to transparent background for section title.
2017-04-15 13:03:01 +02:00
Aurélien Delobelle
ea81ab7b25
Few display improvements.
...
- Current day remains on the screen on history.
- Message for generic team user connection is sended only if user is
connecting from a k-fet url.
- Less contrast on history.
2017-04-15 12:36:11 +02:00
Martin Pépin
ff73a635f8
Minor fixes in settings/
...
- Typo
- Removes old comments
- Moves the template debug context processor back to the common file: it
won't be loaded anyway if `DEBUG=False`.
- Ddt's middleware should be loaded first
2017-04-15 11:09:16 +01:00
Aurélien Delobelle
0a21858b33
Use css for scroll positionning
...
- Better rendering on scroll on pages with a left block
(- It removes the warning on Firefox about scroll positionning)
2017-04-14 13:08:03 +02:00
Ludovic Stephan
55b509b3dd
Merge branch 'aureplop/fix_negative' into 'master'
...
Check negative on cancellation.
Closes #156
See merge request !223
2017-04-13 18:20:24 +02:00
Aurélien Delobelle
7db497d095
Less articles prices history
...
- Prices given with order_to_inventory are saved to db only if they are
updated (it doesn't create a new price row each time)
Fixes #142 .
2017-04-13 16:34:29 +02:00
Aurélien Delobelle
9668f1d1ec
Account: check_negative() -> update_negative()
2017-04-13 15:48:13 +02:00
Aurélien Delobelle
18425b82c2
Check negative on cancellation.
...
- Like perform operations, cancel_operations can add/remove an account
from negative accounts system.
- Balances checks are now performed against real_balance instead of
balance.
So if someone with a balance_offset go, for real, to positive land (ie even
without taking into account the balance offset), its account is removed from
the negative system.
- Fix bug on real_balance when negative exists but balance_offset is
not set.
Fixes #156 .
2017-04-13 15:15:59 +02:00
Aurélien Delobelle
06572f0bb5
Order create use Scale.
...
Order create view use WeekScale. No query improvements, only shorter
code.
Scale/ScaleMixin:
- Two methods directly relative to the Scale class move to... the Scale
class.
- Fix order create on Chrome.
2017-04-13 14:11:44 +02:00
Aurélien Delobelle
3f4a1adbb9
Fewer queries on stats/scales + Fix
...
Scales:
- Fix #chunks when used with std_chunk=True (there was one too many at
the beginning)
- Scale.end gives the end of the last chunk (instead of its start)
So scale.begin -> scale.end gives the full range of the scale.
`kfet_day` now returns an aware datetime.
ScaleMixin:
- new method `get_by_chunks` which use only one query and ranks
elements according to the scale. Elements are returned by a generator
for each scale chunk (and all chunks are returned as a generator too).
ArticlesStatSales and AccountStatOperations use this new method to
avoid issuing #scale_chunks queries.
ArticleStat:
- fixed on Chrome
2017-04-12 18:03:31 +02:00
Aurélien Delobelle
e97e0081d7
Fewer queries on stats of an account balance.
...
- Remove labels, should be replaced to an anchor to the relative
operation in history.
- Add select_related as necessary.
2017-04-11 23:13:54 +02:00
Aurélien Delobelle
b5cc26bb1b
Merge branch 'master' into aureplop/fewer_requests
2017-04-11 22:46:18 +02:00
Martin Pepin
a725f8020c
Merge branch 'aureplop/clean_channels' into 'master'
...
Aureplop/clean channels
Closes #67
See merge request !220
2017-04-11 00:42:08 +02:00
Aurélien Delobelle
b357283f87
Merge branch 'master' into aureplop/clean_channels
2017-04-11 00:32:07 +02:00
Martin Pépin
40abe81402
Integrate the new settings workflow into vagrant
2017-04-10 23:01:19 +01:00
Martin Pépin
a5fb162aaf
New organisation of settings files
...
We reproduce what has been done here:
https://github.com/dissemin/dissemin
The following files can be found under `cof/settings/`
- `common.py`: the settings that are shared by all the environments we
have + the secrets (see below).
- `dev.py`: the settings used by the vagrant VM for local development.
- `prod.py`: the production settings (for both www.cof.ens.fr and
dev.cof.ens.fr)
There is also a notion of "secrets". Some settings like the `SECRET_KEY`
or the database's credentials are loaded from an untracked files called
`secret.py` in the same directory. This secrets are loaded by the common
settings file.
2017-04-10 23:01:19 +01:00
Martin Pepin
a68002d0f6
Merge branch 'aureplop/fix_double_js' into 'master'
...
Fix stats on some browsers
See merge request !219
2017-04-10 23:59:02 +02:00
Aurélien Delobelle
2a3c892d39
Merge branch 'master' into aureplop/fix_cache
2017-04-10 21:39:54 +02:00
Aurélien Delobelle
36771c2c4f
Use redis for cache.
...
- Cache use db #1 of redis.
- Channel layer (of channels) use db #0 of redis.
- `settings` try getting redis connection variables from environment.
- Drop memcached system
2017-04-10 21:36:00 +02:00
Martin Pepin
495c6ac3d1
Merge branch 'aureplop/kfet_config' into 'master'
...
Configuration utilisateur K-Fêt
See merge request !210
2017-04-10 21:14:37 +02:00
Aurélien Delobelle
ab31c20649
missing CACHES value...
2017-04-10 19:47:00 +02:00
Aurélien Delobelle
2c40838938
Add real cache support
...
- Fix cache per process issue with a real cache system
- Configuration seems too easy... but it seems to work
2017-04-10 19:47:00 +02:00
Qwann
be8d249ed7
remove useless code
2017-04-10 17:47:39 +02:00
Qwann
e0b0a53112
stupidness removed
2017-04-10 17:18:43 +02:00
Qwann
cb9ba76a4f
small fixes
2017-04-10 16:47:13 +02:00
Aurélien Delobelle
5d6012b6bd
Fix kfet tests
...
- and add test for `kfet_config.subvention_cof`
2017-04-10 11:52:57 +02:00
Aurélien Delobelle
c228416809
Subvention -> Réduction + units for kfet_config
...
- kfet_config gives "reduction_cof" as editable instead of
"subvention_cof"
- this last one can still be accessed via kfet_config (computed from
new "reduction_cof"
- add units to numeric values of kfet_config form
2017-04-10 11:36:06 +02:00
Qwann
5c6a73c597
kfet_open uses moment.js
2017-04-09 20:54:30 +02:00
Qwann
15873085e1
small fixes
2017-04-09 20:01:52 +02:00
Aurélien Delobelle
6ce2f178bf
Fewer requests on petit cours details management.
2017-04-09 17:57:11 +02:00
Aurélien Delobelle
3dc91e30bd
Fewer requests on petit cours list management.
2017-04-09 17:51:40 +02:00
Aurélien Delobelle
8870b5ace2
Fewer queries on poll view
2017-04-09 17:37:15 +02:00
Aurélien Delobelle
029d59e615
Enable authentication on KPsul websocket.
...
- PermConsumerMixin allows checking permissions on connection to a
consumer.
- KPsul consumer uses this mixin to check if connecting user has the
permission `kfet.is_team`.
Fixes #67 .
2017-04-09 16:10:27 +02:00
Aurélien Delobelle
1e18c4043e
Use last channels & co versions
...
- Use last official releases of channels, asgiref, daphne and
asgi-redis packages.
- Customization of JsonWebsocketConsumer is now in kfet app through a
custom class (and so, doesn't require anymore a forked version of channels).
- Clean kfet consumers code.
2017-04-09 15:47:16 +02:00
Aurélien Delobelle
ebfe5c41d4
Fix stats on some browsers
...
- Delete double import in account_read template
- Syntax on account_read
Stats didn't show on Chrome (at least v57) cause of these.
2017-04-09 01:52:26 +02:00
Aurélien Delobelle
e89ff68d3b
add misisng import
2017-04-09 01:39:18 +02:00
Aurélien Delobelle
457ee64004
update migrations order
2017-04-08 18:38:47 +02:00
Aurélien Delobelle
784ba9bd10
Merge branch 'master' into aureplop/kfet_config
2017-04-08 18:36:28 +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
Aurélien Delobelle
15861824b6
Merge branch 'Aufinal/tabs' into 'master'
...
K-Fêt
- Détails d'un compte: historique et stats sont accessibles par des onglets.
See merge request !218
2017-04-08 14:41:36 +02:00
Aurélien Delobelle
bbe6f41962
Fewer requests on descriptions and catalogue views
2017-04-08 13:44:21 +02:00
Aurélien Delobelle
98f355ed20
Fewer requests on unpaid view
2017-04-08 13:08:53 +02:00
Aurélien Delobelle
15d2faf8e1
Fewer requests on spectacles and participants list views
2017-04-08 13:01:05 +02:00
Aurélien Delobelle
93a3a9af2c
Fewer requests with shotgunable reventes
...
bda.views.revente_shotgun:
- 2 requests instead of ~#spectacles requests
2017-04-08 12:53:37 +02:00
Aurélien Delobelle
fdc1128bd5
delete useless save
2017-04-08 12:12:56 +02:00
Aurélien Delobelle
3556e3b1b0
Fewer requests on bda.views.revente
2017-04-08 12:10:23 +02:00
Ludovic Stephan
4a6bfd5e3d
Better button distinction
2017-04-07 12:58:03 -03:00
Qwann
e18c2c698c
new migration
2017-04-07 17:52:44 +02:00
Qwann
deb0d4de1e
moving migration again
2017-04-07 17:23:41 +02:00
Ludovic Stephan
052e7b2b6e
Move navigation to content-left
2017-04-07 12:17:36 -03:00
Qwann
531a4611d3
Merge branch 'master' into qwann/k-fet/kfet_open
2017-04-07 17:11:48 +02:00
Aurélien Delobelle
d31101aff3
Empty SpectacleRevente and ChoixRevente before do_tirage.
...
- Usefull if a tirage is launched more than once.
- Ensure full reset of reventes for this tirage in this case.
2017-04-07 17:04:06 +02:00
Aurélien Delobelle
9f307c1bd0
Fewer db requests on bda tirage.
...
bda.algorithm
- use iterator to find max_groups, instead of a db request
bda.views.do_tirage
- select_related() are now focused on some relationships (they were
taking useless relationships)
- bda-revente filling takes 1 request (each save and add was issuing
1 request)
2017-04-07 16:22:10 +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
e26668e5eb
Add tabs to account_read
2017-04-06 21:17:47 -03:00
Aurélien Delobelle
b8aa5d8bbe
Merge branch 'master' into aureplop/fewer_requests
2017-04-06 21:25:22 +02:00
Aurélien Delobelle
a0979c220b
Merge branch 'bda_pep8' into 'master'
...
Clean the `bda.views.catalogue` view
See merge request !212
2017-04-06 21:24:18 +02:00
Aurélien Delobelle
0ed70eb0a7
PEP8
...
No improvement.
2017-04-06 20:30:23 +02:00
Aurélien Delobelle
026fba867d
Fewer db requests on home view.
...
- 1 request instead of (2 + #articles)
2017-04-06 19:44:16 +02:00
Aurélien Delobelle
2731d4630f
Fewer requests on accounts groups.
...
- Saves two queries.
(4 prefetch where done, replaced by 2 prefetchs (whose 1 with 2
selected_related))
2017-04-06 19:25:23 +02:00
Aurélien Delobelle
afdb08b424
Fewer db requests with AccountNegative handling.
...
- AccountNegative use new AccountNegativeManager which select_related
account, cofprofile and user for instances accessed via
AccountNegative.objects.
- Compute sum of negatives with python instead of an SQL statement
(since we already got the data with a previous query).
- Fix bug on account property `real_balance` (happened if
an account has a relative AccountNegative instance but balance_offset
to NULL).
- More compliant to PEP8
2017-04-06 19:07:13 +02:00
Aurélien Delobelle
f8b71b604c
Fewer db accesses on transfers list view.
...
- Add select_related for `from_acc`, `to_acc` and `group.valid_by`.
- 2 requests instead of (3 * #transfers)
2017-04-06 18:42:00 +02:00
Aurélien Delobelle
709d421b2c
Add custom Manager for Account model.
...
- When Account model is queried with Account.objects, it always add
.select_related('cofprofile_user', 'negative').
- Eg benefits: history doesn't do anymore one request by account to
fill the account filter.
Important
Using this workaround (systemically append select_related) can be
dangerous normally, however a certain number of properties in
cofprofile and user are frequently used (as firstname or lastname), and
the benefits seems greater.
2017-04-06 18:23:27 +02:00
Aurélien Delobelle
33cee05884
initial checkout selected
...
Result is the same result but:
- auto-select go to javascript
- 1 less request for KPsulCheckoutForm
- delete debug messages
- some PEP8
2017-04-06 16:45:44 +02:00
Aurélien Delobelle
56fa70e495
fewer calls on account_read view
2017-04-06 14:38:25 +02:00
Aurélien Delobelle
c9019c4eb4
Get debug toolbar with ajax calls
...
- Add django-debug-panel module to pip development dependencies
- Enable debug toolbar on ajax calls by using the "Django Debug Panel"
extension for... Chrome.
For further informations about:
- django module, see https://github.com/recamshak/django-debug-panel
- Chrome extension, see https://github.com/recamshak/chrome-django-panel
2017-04-06 14:36:25 +02:00
Aurélien Delobelle
1302adf156
globally fewer db requests
2017-04-06 14:15:03 +02:00
Aurélien Delobelle
f57bab8ae9
createopes use only bulk_create
...
createopes script:
- more than 6x faster
- only bulk_create is used instead of create or save
- correctly create editions (~5% of created operations)
- ratio of withdrawals go from ~10% to ~5%
2017-04-06 13:33:40 +02:00
Martin Pépin
387edd2fd5
Merge branch 'master' into Production
2017-04-05 23:33:20 +01:00
Ludovic Stephan
5e68fcf315
Merge branch 'aureplop/hotfix' into 'master'
...
Aureplop/hotfix
See merge request !214
2017-04-06 00:32:29 +02:00
Aurélien Delobelle
4b2e20e728
created_at required with default
2017-04-06 00:31:04 +02:00
Aurélien Delobelle
e2d7192b23
fix perform opes after account reset
2017-04-06 00:11:41 +02:00
Aurélien Delobelle
c849306a32
fix kfet home template
2017-04-06 00:00:53 +02:00
Martin Pépin
6f66fbbf3c
Merge branch 'master' into Production
2017-04-05 22:39:30 +01:00
Martin Pépin
981759f5ce
Adds tests covering the bda-catalogue JSON API
2017-04-05 21:02:00 +01:00
Martin Pépin
9ec151e040
A query optimization in bda.views.catalogue
...
We only need to fetch shows identifiers here:
FOO.filter(BAR__in=shows)
which can be done using the `values_list` method
2017-04-05 20:48:18 +01:00
Martin Pépin
ff9cee5ffc
line too long in bda.models
2017-04-05 20:42:50 +01:00
Martin Pépin
853a239e6e
Rewrite bda.views.catalogue
...
- No string concatenations
- Use `get_object_or_404` instead of performing a `.get` and catching
the eventual exception.
- More accurate error messages when a bad request is detected.
- More accurate error handling
2017-04-05 19:53:04 +01:00
Qwann
ef8fec89fe
migration renamed
2017-04-05 17:50:49 +02:00
Qwann
a5671fdf4c
Merge branch 'master' into qwann/k-fet/kfet_open
2017-04-05 17:40:19 +02:00
Aurélien Delobelle
ebf948d042
Merge branch 'qwann/k-fet/category_addcost' into 'master'
...
K-Fêt - Majorations
- Seulement les catégories préalablement sélectionnées sont majorées le
le cas échéant.
- Pour modifier cette sélection, suivre le lien "Catégories" depuis la
liste des articles.
Fixes #149
See merge request !189
2017-04-05 15:52:15 +02:00
Aurélien Delobelle
3ee9de93d9
few improvements on article category
...
- add verbose names to ArticleCategory fields
- add button to view categories list from articles list
- fix article_update template in form validation
- improve interface for articlecategory_update
- revert vanished urls (happened in merge with master...)
2017-04-05 15:34:28 +02:00
Aurélien Delobelle
42728e58be
Merge branch 'master' into qwann/k-fet/category_addcost
2017-04-05 14:57:26 +02:00
Martin Pépin
a262983170
PEP8 compliance in bda.views
2017-04-04 23:51:22 +01:00
Martin Pepin
fe66a6ef6b
Merge branch 'aureplop/fix_stats' into 'master'
...
Stats K-Fêt - Python side
See merge request !208
2017-04-05 00:41:47 +02:00
Martin Pépin
85ba44c231
Tests the redirection using the appropriate method
2017-04-04 23:31:24 +01:00
Qwann
7350006990
PEP8
2017-04-04 21:48:17 +02:00
Qwann
ba11aa49db
categories are updatable
2017-04-04 21:36:02 +02:00
Aurélien Delobelle
dc07b072ab
Flatten scale args in GET params of stats urls
...
- get_scale_args method of ScaleMixin retrieves useful GET params for
Scale object instanciation (by default from request.GET)
- it takes into account the type of the scale arg
- prefix used for GET param can be modified in stats_manifest funcs and
ScaleMixin
2017-04-04 20:12:21 +02:00
Aurélien Delobelle
885e40fd05
cleaner scales
...
- References to `Stat` in `Scale` objects are deleted (because scales
are independent of stats)
- KFET_WAKES_UP_AT is now a time object insted of an hour
- Proper use of date, datetime, timedelta, etc (django.utils.timezone
provides neither datetime nor timedelta)
2017-04-04 18:11:15 +02:00
Aurélien Delobelle
ddd71c7ac1
add missing __init__
2017-04-04 17:29:54 +02:00
Aurélien Delobelle
714903210c
Add kfet_config tests
...
- KFetConfig `set` method now takes model instance instead of their pk
for this type of entries.
- Add tests for KFetConfig class: tests against types currently used by
kfet app (duration, modelinstance, decimal).
- These tests are located in `kfet/tests/test_config.py`. We should
separate tests suites by file like this, considering what they are about.
- KFetConfig method `set_many` renamed to `set` (because it also updates
only one).
2017-04-04 17:05:55 +02:00
Qwann
72615bf400
small fixes
2017-04-04 16:57:17 +02:00
Aurélien Delobelle
278459e80f
typo.......
2017-04-04 11:05:49 +02:00
Aurélien Delobelle
0405eee7a7
Merge branch 'Aufinal/inventaires' into 'master'
...
K-Fêt - Création d'inventaires
- Amélioration de l'interface
- Ajout de colonnes intermédiaires pour faciliter le calcul
- Ajout d'indication de conflits possibles avec les opérations en cours
- Résolution semi-automatique de ces conflits
Closes #141
See merge request !200
2017-04-04 10:59:09 +02:00
Martin Pépin
b383923d49
Merge branch 'Kerl/test_stats' into aureplop/fix_stats
2017-04-04 09:39:26 +01:00
Aurélien Delobelle
7989a07b5f
cleaner fix
2017-04-04 01:36:19 +02:00
Aurélien Delobelle
df467767f4
fix default GET param 'types' on operations stats
2017-04-04 01:29:19 +02:00
Martin Pépin
f13d1072c7
Add simple tests for the stat views
...
We check that we can get all the stats views with the appropriate
permissions.
2017-04-03 23:21:42 +01:00
Aurélien Delobelle
ce2a05766d
Add set_many methods to kfet_config
...
- Fix addcost updates (from K-Psul)
2017-04-03 23:06:47 +02:00
Ludovic Stephan
51acb4e00a
Use new WS class
2017-04-03 16:05:18 -03:00
Ludovic Stephan
32474a6865
Don't update input when unchecking
2017-04-03 16:03:22 -03:00
Ludovic Stephan
f46ba0dd6c
Merge branch 'master' into Aufinal/inventaires
2017-04-03 16:01:51 -03:00
Aurélien Delobelle
7384465cbd
fix migrations order
2017-04-03 21:01:36 +02:00
Aurélien Delobelle
921dce1f35
Merge branch 'master' into aureplop/kfet_config
2017-04-03 20:58:57 +02:00
Aurélien Delobelle
b3418db33d
Merge branch 'Aufinal/edit_migration' into 'master'
...
Migrations oubliées
See merge request !209
2017-04-03 20:58:00 +02:00
Ludovic Stephan
5607d7c9a4
Migration pour kfet_forms
2017-04-03 15:54:02 -03:00
Ludovic Stephan
ad2c8537e3
Add Runpython (oops)
2017-04-03 15:50:18 -03:00
Aurélien Delobelle
85caa6b058
Use django-djconfig for kfet app.
...
Old configuration(/settings), based on Settings model, system is
deleted: SettingsForm, Settings.
New system use `django-djconfig` module.
- `kfet.config` module provides `kfet_config` to access configuration concerning
kfet app.
- Views, forms, models, etc now use this object to retrieve conf values.
- Views no longer add config values to context, instead templates use
`kfet_config` provided by a new context_processor.
- Enhance list and update views of settings.
- Fix: settings can directly be used without having to visit a specific
page...
Misc
- Delete some py2/3 imports
- Delete unused imports in kfet.models and kfet.views
- Some PEP8 compliance
2017-04-03 20:32:16 +02:00
Aurélien Delobelle
10d2b58fa7
clean some comments
...
- fix: error if actions are empty in balance stats
2017-04-03 17:06:32 +02:00
Aurélien Delobelle
6d2e150aa0
clean align
2017-04-03 16:56:44 +02:00
Aurélien Delobelle
903da795ab
clean kfet statistic.js
...
- no longer dictToArray where it isn't necessary (because already an
array)
- fix chart height:
- previous charts were causing bugs
- height is fixed (even with window resizing)
- clean whitespaces
2017-04-03 16:53:28 +02:00
Ludovic Stephan
40da3bc299
Listen on input
2017-04-03 11:21:05 -03:00
Ludovic Stephan
b113a57b74
Fix update function
2017-04-03 11:20:56 -03:00
Aurélien Delobelle
87bc90ec8b
Begin/end balance stat graph
...
- Anytime begin at account creation datetime
- Others doesn't take care of account creation
- Add check to avoid to bug on actions list length
2017-04-03 16:07:31 +02:00
Aurélien Delobelle
769c37634d
delete debug msg
2017-04-03 15:43:56 +02:00
Aurélien Delobelle
a4a854bc50
Merge branch 'master' into aureplop/kfet_config
2017-04-03 15:22:03 +02:00
Aurélien Delobelle
1bb83ccdd7
simplify StatScale
2017-04-03 15:10:53 +02:00
Aurélien Delobelle
7dc233c0e2
Merge branch 'Aufinal/editions' into 'master'
...
K-Fêt
- Fix: Les éditions ne touchent plus la caisse
- Fix: Seuls les achats sont possibles sur LIQ
See merge request !198
2017-04-03 14:39:53 +02:00
Aurélien Delobelle
b157ffac4c
Merge branch 'Aufinal/kfet_forms' into 'master'
...
K-Fêt
- Affichage des formulaires amélioré
See merge request !203
2017-04-03 13:40:41 +02:00
Aurélien Delobelle
b3a9ad8a96
clean mixin
2017-04-03 13:24:04 +02:00
Aurélien Delobelle
d97a7be819
stats: fix begin of balances graphs
...
- graph begin at first operation or later
2017-04-03 03:15:07 +02:00
Aurélien Delobelle
c01de558e1
Clean Article stats
...
kfet.statistic
- delete no longer used defs
- new mixin - ScaleMixin
- get scale args from GET params
- chunkify querysets according to a scale
Article stats
- use SingleResumeStat for manifest
- use ScaleMixin for sales
- update urls
- update permission required: teamkfet
Account stats
- update permission required: teamkfet
- operations use ScaleMixin
- fix manifests urls
2017-04-03 03:12:52 +02:00
Aurélien Delobelle
f585247224
Refactor Account Operations stats
...
K-Fêt - Statistics
New base class - StatScale
- create scale, given chunk size (timedelta), start and end times
- get labels of
- get start and end datetimes of chunks
DayStatScale: Scale whose chunks interval is 1 day
WeekStatScale: same with 1 week
MonthStatScale: same with 1 month
AccountStatOperationList: manifest of operations stats of an account
- renamed from AccountStatLastAll
- updated according to SingleResumeStat
AccountStatOperation:
- renamed from AccountStatLast
- remove scale logic with use of StatScale objects
- used scale is given by `scale` and `scale_args` GET params
- add filter on operations types with `types` GET param
AccountStatLast(Day,Week,Month) are deleted ("merged" in
AccountStatOperation)
2017-04-03 00:40:52 +02:00
Aurélien Delobelle
31261fd376
set height canvas graph & fix graph display
2017-04-02 23:38:42 +02:00
Aurélien Delobelle
6ebea6557c
Merge branch 'Aufinal/graph_size' into aureplop/fix_stats
2017-04-02 23:19:34 +02:00
Ludovic Stephan
48721b7dca
Reduce graph size
2017-04-02 17:54:13 -03:00
Aurélien Delobelle
df7e935390
Clean GET params in ajax calls
...
- Use `data` arg of `$.getJSON` for `format` param
- Delete `dictToArray` call on data returned by `SingleResumeStat` class view since this view now returns stats manifest as an array
2017-04-02 17:16:05 +02:00
Aurélien Delobelle
1ee993e1e1
Add permission check to AccountStatBalance
...
Only connected user can get its balance data
2017-04-02 17:14:36 +02:00
Aurélien Delobelle
87b9db520f
Refactor py base stats and account balance stats
...
New mixin: PkUrlMixin
- use with SingleObjectMixin standard django mixin (used by
DetailView...)
- `get_object` use field declared in `pk_url_kwarg` to get... the object
SingleResumeStat
- clean (part of) py code
AccountStatBalanceList
- renamed from `AccountStatBalanceAll`
- url modified
- add permission checking (only the connected user can get balance
stats manifest)
- clean py code
AccountStatBalance
- cleaner filtering management
- merge urls using this class
- clean py code
2017-04-02 17:03:20 +02:00
Aurélien Delobelle
f6022ecf7d
Add str to Transfer model
...
+ PEP8 this model
2017-04-02 16:49:41 +02:00
Aurélien Delobelle
78aa5df350
fix template error
2017-04-02 12:55:44 +02:00
Aurélien Delobelle
e8fdd083aa
delete unused class-views
2017-04-02 05:34:34 +02:00
Aurélien Delobelle
96597aa146
clean some kfet templates
2017-04-02 05:17:26 +02:00
Ludovic Stephan
c9973cde75
Help text for password length
2017-04-01 23:25:47 -03:00
Aurélien Delobelle
55116f7179
Merge branch 'Aufinal/stat_article' into 'master'
...
Fix article stat display
See merge request !207
2017-04-02 02:49:54 +02:00
Martin Pépin
f6d43dffa1
exclude empty strings from ldap results
...
The uid attribute in a LDAP's entry cannot be an empty string. We need
to get an actual identifier.
2017-04-01 22:33:02 +01:00
Martin Pépin
c3d740ade0
Handle incomplete values from the LDAP
...
Sometime `uid` is not set in the objects fetched from the LDAP. This
case has to be handled. Also, the `.uid` and `.cn` attributes of these
objects in the python abstractions have a `.value` method which we
should use.
2017-04-01 22:32:32 +01:00
Martin Pépin
e4d51de569
Merge branch 'hotfix/autocomplete_no_value'
2017-04-01 22:11:36 +01:00
Ludovic Stephan
91a057873d
Merge migrations
2017-04-01 18:10:51 -03:00
Ludovic Stephan
944a73eef7
Merge remote-tracking branch 'origin/master' into Aufinal/editions
2017-04-01 18:09:23 -03:00
Martin Pépin
a793e9a2e7
exclude empty strings from ldap results
...
The uid attribute in a LDAP's entry cannot be an empty string. We need
to get an actual identifier.
2017-04-01 22:07:32 +01:00
Martin Pépin
9cdf064005
Handle incomplete values from the LDAP
...
Sometime `uid` is not set in the objects fetched from the LDAP. This
case has to be handled. Also, the `.uid` and `.cn` attributes of these
objects in the python abstractions have a `.value` method which we
should use.
2017-04-01 21:45:05 +01:00
Ludovic Stephan
cce0411ee9
Merge both 0048 migrations
2017-04-01 17:37:29 -03:00
Martin Pepin
1eed2283f5
Merge branch 'Roussille/bda' into 'master'
...
Catalogue BdA
See merge request !187
2017-04-01 18:56:26 +02:00
Hugo Roussille
66dd7848b8
Correction du format de l'URL
2017-04-01 16:48:18 +02:00
Hugo Roussille
6b8001db56
Correction des messages d'erreur et de la gestion des exceptions
2017-04-01 16:34:17 +02:00
Ludovic Stephan
bbb517fbd3
Fix article stat display
2017-04-01 10:37:40 -03:00
Ludovic Stephan
6797c92a1f
Ok ok je me rends
2017-04-01 09:35:37 -03:00
Ludovic Stephan
e20ab2f352
Use set delete()
2017-04-01 09:18:40 -03:00
Ludovic Stephan
271654b447
No need for intermediate error reporting
2017-04-01 08:47:09 -03:00
Aurélien Delobelle
c355316045
Merge branch 'Aufinal/fix_stock_ws' into 'master'
...
K-Psul
- Fix: indicateur de stock bas
See merge request !201
2017-04-01 12:36:59 +02:00
Ludovic Stephan
ccf5f80685
Merge remote-tracking branch 'origin/master' into Aufinal/editions
2017-04-01 02:43:19 -03:00
Ludovic Stephan
8da832c1f7
Use nice authentication in orders too
2017-04-01 00:36:39 -03:00
Ludovic Stephan
063446efb5
Use columns for authentication and submit
2017-04-01 00:32:09 -03:00
Ludovic Stephan
cf03fba1cc
Remove whitespace by using elif
2017-03-31 23:54:38 -03:00
Ludovic Stephan
9c9ad21d73
Add variable for article line
2017-03-31 23:46:10 -03:00
Ludovic Stephan
92fd94d1f9
Merge remote-tracking branch 'origin/master' into Aufinal/fix_stock_ws
2017-03-31 23:43:19 -03:00
Aurélien Delobelle
1286606f7a
Merge branch 'Aufinal/hotfix/liq_withdraw' into 'master'
...
K-Fêt :
- Empêche les retraits/charges sur LIQ
See merge request !205
2017-03-31 23:49:33 +02:00
Aurélien Delobelle
fafa7e536e
Merge branch 'Aufinal/websockets' into 'master'
...
K-Fêt :
- Ajout d'une classe générale pour les websockets
See merge request !204
2017-03-31 23:40:02 +02:00
Ludovic Stephan
aa29621c7c
Prevents special opes on LIQ
2017-03-31 18:28:03 -03:00
Ludovic Stephan
ab15dbae76
Add handler management
2017-03-31 17:37:39 -03:00
Ludovic Stephan
38bfccf331
Change class name
2017-03-31 15:57:15 -03:00
Ludovic Stephan
8bf1bd5343
Websocket as member
2017-03-31 15:45:15 -03:00
Ludovic Stephan
413df0806d
Add url get method
2017-03-31 15:10:41 -03:00
Ludovic Stephan
49c84076de
Manage help_text and errors
2017-03-31 15:01:31 -03:00
Ludovic Stephan
1d8e084a19
websocket update when addcost
2017-03-31 14:37:00 -03:00
Martin Pépin
67b4421933
PEP8 does not like \
2017-03-31 17:54:31 +01:00
Martin Pépin
8a1af73ee0
A migration for the new field appear_catalogue
2017-03-31 17:53:35 +01:00
Ludovic Stephan
499c081565
Websocket class and instance
2017-03-31 12:23:27 -03:00
Ludovic Stephan
fdcd2e864c
Use widget_tweaks everywhere
2017-03-31 11:24:38 -03:00
Ludovic Stephan
530aafad19
Use widget_tweaks
2017-03-31 11:07:37 -03:00
Ludovic Stephan
6ac1241bd3
Listen to submit instead
2017-03-31 10:07:42 -03:00
Ludovic Stephan
50cb6e51a1
Use Set() natively
2017-03-31 10:06:02 -03:00
Ludovic Stephan
e54324e9f1
Use col-offset
2017-03-31 09:50:37 -03:00
Hugo Roussille
8cf14d3f6b
Possibilité de filtrer sur plusieurs salles/catégories
2017-03-31 04:33:13 +02:00
Hugo Roussille
73c21d83ee
Correction des exceptions et de l'URL des images
2017-03-31 03:47:32 +02:00
Hugo Roussille
f3b9266e35
Simplification du code avec des méthodes de Django
2017-03-31 03:35:09 +02:00
Hugo Roussille
a9c8de7544
Utilisation des JsonResponse
2017-03-31 03:15:40 +02:00
Hugo Roussille
c4a3c1a92a
Formatage du code selon PEP-8
2017-03-31 02:51:58 +02:00
Ludovic Stephan
ebf133d9af
Lowercase model verbose names
2017-03-30 21:38:16 -03:00
Ludovic Stephan
20561eb515
Idem for account_update
2017-03-30 21:31:16 -03:00
Ludovic Stephan
c1b8849cb8
Idem for supplier_form
2017-03-30 21:16:47 -03:00
Ludovic Stephan
91d5fe234c
Idem for checkoutstatements
2017-03-30 21:10:50 -03:00
Ludovic Stephan
8e65298c7c
Idem for article_update
2017-03-30 19:34:22 -03:00
Ludovic Stephan
079666c0db
Use verbose names and form snippets for article_create
2017-03-30 19:32:11 -03:00
Ludovic Stephan
0c21238391
Change misc field when updating
2017-03-30 18:39:13 -03:00
Martin Pepin
63cb7b7fd0
Merge branch 'Aufinal/dev_supplier' into 'master'
...
Ajoute un fournisseur aux données de dev
See merge request !202
2017-03-30 19:04:22 +02:00
Ludovic Stephan
998838ca3e
Add update button
2017-03-30 13:31:16 -03:00
Ludovic Stephan
31888e33ce
simpler jquery selection
2017-03-30 13:30:55 -03:00
Ludovic Stephan
56b5fd6279
Always randomize supplier articles
2017-03-29 23:22:18 -03:00
Ludovic Stephan
95c59de4fc
Add supplier to dev data
2017-03-29 23:16:40 -03:00
Ludovic Stephan
eb7d436b90
Add "count finished" checkbox
2017-03-29 20:43:48 -03:00
Martin Pépin
f32f83db75
Merge branch 'hotfix/bda_mail_context'
2017-03-29 18:43:55 +01:00
Martin Pépin
2d22c202e9
Prevent side effects while sending emails
2017-03-29 18:17:20 +01:00
Ludovic Stephan
ca6e120a38
Fix ws stock update
2017-03-29 09:43:10 -03:00
Martin Pépin
c95d7cb670
Merge branch 'master' of git.eleves.ens.fr:cof-geek/gestioCOF
2017-03-29 11:21:11 +01:00
Martin Pépin
47e1071b12
Merge branch 'Production'
2017-03-29 11:20:55 +01:00
Martin Pépin
579711ed2d
Hotfix: typo in template name
2017-03-29 11:17:34 +01:00
Ludovic Stephan
e6a1d16860
Websocket to manage possible kpsul conflicts
2017-03-29 00:58:47 -03:00
Ludovic Stephan
3b793dc726
Add first improvements for inventory
2017-03-28 23:47:41 -03:00
Ludovic Stephan
946182f1fe
Simpler migration revert
2017-03-26 15:06:45 -03:00
Ludovic Stephan
06a89055c4
Simpler migration
2017-03-25 10:46:18 -03:00
Ludovic Stephan
9a081ddae0
PEP8 on Operation model
2017-03-25 10:43:02 -03:00
Ludovic Stephan
f645121fb1
Add error when editing LIQ
2017-03-25 10:39:53 -03:00
Ludovic Stephan
14e0d8090f
Add euros symbols
2017-03-25 10:01:35 -03:00
Ludovic Stephan
d8f572bb01
Remove group check in is_checkout
2017-03-25 09:57:44 -03:00
Ludovic Stephan
bc0affc038
Remove autocomplete leftovers
2017-03-25 09:56:36 -03:00
Aurélien Delobelle
ae82c34023
add missing migration
2017-03-25 11:21:21 +01:00
Aurélien Delobelle
215d4a63ad
Merge branch 'Aufinal/create_opes' into 'master'
...
K-Fêt - Dev :
- new command - createopes: Création d'opérations et transferts aléatoires
See merge request !193
2017-03-25 11:08:22 +01:00
Ludovic Stephan
794527772f
Add more explicit migration name
2017-03-24 23:41:33 -03:00
Ludovic Stephan
5f3f044084
Add revert function to migration
2017-03-24 23:27:55 -03:00
Ludovic Stephan
608e67fe6a
Add RunPython script to migration
2017-03-24 21:23:04 -03:00
Ludovic Stephan
44fbc92893
Merge branch 'master' of git.eleves.ens.fr:cof-geek/gestioCOF into Aufinal/editions
2017-03-24 21:07:32 -03:00
Ludovic Stephan
d7740e66fe
adapt code to is_checkout removal
2017-03-24 20:52:49 -03:00
Ludovic Stephan
cadaf43131
Remove is_checkout field from Operation model
2017-03-24 18:50:57 -03:00
Aurélien Delobelle
f063c3470c
Merge branch 'Aufinal/fix_password_freeze' into 'master'
...
K-Psul:
- fix freeze when no-team password
Closes #153
See merge request !196
2017-03-24 20:53:44 +01:00
Aurélien Delobelle
ff5959638b
fix missing bracket
2017-03-24 20:32:04 +01:00
Aurélien Delobelle
a221d7841c
Merge branch 'Aufinal/merge_k-fet' into 'master'
...
K-Fêt - 17-03-15
Closes #140 , #111 , #121 , #128 , #97 , #117 , #87 , #127 , and #109
See merge request !186
2017-03-24 20:23:58 +01:00
Aurélien Delobelle
cb13280458
Merge branch 'master' into 'Aufinal/merge_k-fet'
...
# Conflicts:
# kfet/static/kfet/css/index.css
2017-03-24 20:23:32 +01:00
Ludovic Stephan
7520effe53
Fix K-Psul freeze when no-team password
...
L'erreur 403 est renvoyée dans ce cas par le décorateur
`@teamkfet_required`, donc sans data associé, ce qui faisait buguer
`getErrorsHtml`. On rajoute donc le cas correspondant.
2017-03-24 15:45:47 -03:00
Martin Pepin
33b3d558b5
Merge branch 'Aufinal/decorators' into 'master'
...
Utilise les bons décorateurs
See merge request !195
2017-03-21 00:25:50 +01:00
Ludovic Stephan
5e802217fd
Remove lambda operators
2017-03-20 20:24:44 -03:00
Ludovic Stephan
dd4d1f3061
Improves creation efficiency
2017-03-20 20:19:04 -03:00
Ludovic Stephan
aa247b465a
Fix search box (hackish)
2017-03-20 19:08:48 -03:00
Martin Pepin
ae38b5d1e7
Merge branch 'hotfix/prevent_ldap_injection' into 'master'
...
Hotfix/prevent ldap injection
Closes #150
See merge request !188
2017-03-20 23:06:59 +01:00
Martin Pépin
59f57793ba
typo
2017-03-20 22:05:48 +00:00
Martin Pépin
0aed975615
Fix the empty-query test in autocomplete
...
If there is no valid word to search in the LDAP database, no query is
performed. Since 74f0b63e
, that behaviour was broken because of a typo
2017-03-20 08:14:20 +00:00
Ludovic Stephan
6d36d50e9a
Fix 'at' property for transfergroups
2017-03-20 01:56:59 -03:00
Ludovic Stephan
2c63e6b667
Use django.contrib.auth decorators
2017-03-20 00:11:50 -03:00
Ludovic Stephan
36dc6439a8
Plug createopes into loadkfetdevdata
2017-03-19 16:03:39 -03:00
Ludovic Stephan
0356ec34ae
Add createopes command
2017-03-19 16:03:19 -03:00
Martin Pépin
74f0b63e96
Change ldap query behaviour if multiple inputs
...
It is now consistent with the other lookups over the User database
2017-03-19 15:10:08 +00:00
Martin Pépin
dc50a23b10
Escape the content of the regex in highligh_text
2017-03-19 14:48:04 +00:00
Martin Pepin
a057869d77
Merge branch 'Aufinal/fix_kfet_devdata' into 'master'
...
Données de test K-Fêt
See merge request !191
2017-03-19 15:15:02 +01:00
Martin Pépin
4899bba1f7
Replace list comprehensions by iterators in dal
2017-03-19 14:05:25 +00:00
Ludovic Stephan
51fba4da21
Log messages
2017-03-18 19:02:08 -03:00
Ludovic Stephan
47b7d934e0
PEP8 on imports
2017-03-18 19:01:51 -03:00
Ludovic Stephan
29d7654052
Root kfet account
2017-03-18 18:02:33 -03:00
Ludovic Stephan
f512c1bdd7
Add better checkout creation
2017-03-18 18:02:23 -03:00
Qwann
de724a2c0d
PEP8 for perform_operation
2017-03-17 19:53:23 +01:00
Qwann
a107fa0309
migration renamed
2017-03-17 19:23:44 +01:00
Qwann
fcc2ab8810
frontend working
2017-03-17 19:17:36 +01:00
Martin Pépin
55b67f38c8
Notice the users about the α-numeric restriction
...
Add a help text above the two autocompletion inputs letting the users
know that non-alphanumeric characters will not be used.
2017-03-16 23:16:56 +00:00
Martin Pépin
741f0183e6
Prevent ldap injections in autocompletion views
...
We only allow alphanumeric characters in the query in order to avoid
injections
2017-03-16 22:43:43 +00:00
Hugo Roussille
a8428f1b41
Précision des tirages qui doivent apparaître dans le catalogue
2017-03-16 06:34:49 +01:00
Hugo Roussille
7ecea0e391
Meilleure gestion des dates et timezones
2017-03-16 06:22:01 +01:00
Hugo Roussille
68334e15d7
Gestion des citations
2017-03-16 05:50:02 +01:00
Ludovic Stephan
3793863bab
Merge remote-tracking branch 'origin/k-fet' into Aufinal/merge_k-fet
2017-03-15 22:58:54 -03:00
Martin Pépin
3acc8bca75
s/username/clipper in highlight_clipper
...
There was typo, the `Clipper` object has no `username` attribute. We
want to use the `clipper` attribute
2017-03-15 19:11:38 +00:00
Martin Pépin
e98a407982
Rename bits -> search_words in kfet.autocomplete
...
This is typo, this variable has not the same name in
`gestioncof.autocomplete` and `kfet.autocomplete`
2017-03-15 19:02:31 +00:00
Martin Pépin
84a39b41f2
Fix wrong email generation in _traitement_post (2)
...
I forgot to fix an email in commit c51379447
. Now there are all
well-formed
2017-03-15 18:35:42 +00:00
Martin Pépin
c4edff717d
Disable the fail_silently option for emails
...
It is obviously a bad idea to fail silently if something go wrong
when the connection with the mail server is being established. This was
enabled in the `_traitement_post` method.
2017-03-15 18:21:26 +00:00
Martin Pépin
c513794474
Fix wrong email generation in _traitement_post
...
The list `proposed_mails` is a list of elements of the kind
`(User, (mail_object, mail_body))` but it was handled as if it were
`(User, mail_body)` in the function `_traitement_post`.
2017-03-15 18:17:08 +00:00
Martin Pépin
98abe71681
Handle errors=None
in _finalize_traitement
...
Sometimes the `errors` variable is `None` in `_finalize_traitement`.
It was not an issue when it was just used in the templates but now we
have to handle this in the view. Basically, we shall consider it is an
empty list when it occurs.
2017-03-15 11:59:41 +00:00
Martin Pépin
c37754376b
Move registration_form to gestioncof/
...
The `registration` view was referencing this file using
`"gestioncof/registration_form.html"` whereas the `registration_post`
templated was referencing it in the global namespace
`"registration_form.html"`.
We choose the `gestioncof/` folder in order to avoid further conflicts
with other apps.
2017-03-15 11:40:52 +00:00
Hugo Roussille
f64a865de1
Côté serveur du catalogue des spectacles BdA
2017-03-15 07:37:24 +01:00
Qwann
d0938dfae7
Merge branch 'k-fet' into qwann/k-fet/category_addcost
2017-03-11 15:10:04 +01:00
Aurélien Delobelle
e6f0369874
Merge branch 'qwann/k-fet/home' into 'k-fet'
...
Qwann/k fet/home
### new features
Adding the menu on the K-Fêt home page. Adding `hidden` attribute to Article for articles people don't want to have on the menu. The menu only show items with `is_sold = True` and `hidden = True`.
See merge request !164
2017-03-11 13:26:56 +01:00
Qwann
b0643c0928
typo
2017-03-11 02:04:30 +01:00
Qwann
ee6de35627
category addcost added
2017-03-10 18:29:15 +01:00
Qwann
52dda7be9a
Merge branch 'qwann/k-fet/home' into qwann/k-fet/kfet_open
2017-03-10 16:58:46 +01:00
Qwann
5ddcd2f1ff
Merge branch 'k-fet' into qwann/k-fet/home
2017-03-10 16:58:10 +01:00
Qwann
cd31c55254
permission working
2017-03-10 16:40:36 +01:00
Qwann
f18bb9f336
permission added
2017-03-09 17:27:58 +01:00
Qwann
8e7b9e2fd3
force close working
2017-03-09 15:05:47 +01:00
Qwann
5694e4b9bc
migrations merged
2017-03-09 11:11:31 +01:00
Qwann
ce96bc4b67
Status added on home page
2017-03-07 17:31:43 +01:00
Qwann
f8e09cf257
unknow status updated every 30s
2017-03-07 14:12:23 +01:00
Qwann
0f96d3bc46
moving kfet_open url
2017-03-07 14:02:08 +01:00
Qwann
392338eddd
indent
2017-03-06 09:30:58 +01:00
Qwann
b7040d5867
adding KFET_FORCE_CLOSE in cache
2017-03-06 02:25:18 +01:00
Qwann
8e462134c7
home base html
2017-03-06 02:08:33 +01:00
Qwann
964dd716c6
Merge branch 'qwann/k-fet/home' into qwann/k-fet/kfet_open
2017-03-06 02:04:11 +01:00
Qwann
ca17e36b5a
clean display for is_sold
2017-03-06 02:03:19 +01:00
Qwann
dcc19bd9e8
article.hidden in article & article_read
2017-03-06 01:58:33 +01:00
Aurélien Delobelle
fbd0d760b6
Merge branch 'Aufinal/command_interface' into 'k-fet'
...
Interfaces de commandes et d'inventaires
- Modifie la présentation de ces interfaces.
- Ajout de tooltips d'aide sur les colonnes.
fixes #140
See merge request !170
2017-03-06 01:40:40 +01:00
Ludovic Stephan
8e31fae340
last tweaks
2017-03-05 21:29:20 -03:00
Ludovic Stephan
61e2fedb08
Merge branch 'k-fet' of git.eleves.ens.fr:cof-geek/gestioCOF into Aufinal/command_interface
2017-03-05 21:12:53 -03:00
Qwann
624707570e
Merge branch 'qwann/k-fet/home' into qwann/k-fet/kfet_open
2017-03-05 20:06:37 +01:00
Qwann
197da29366
css include added...
2017-03-05 20:05:35 +01:00
Qwann
15b8900d43
fixes dumb merge
2017-03-05 19:56:56 +01:00
Qwann
a828ecbcf0
Merge branch 'qwann/k-fet/home' into qwann/k-fet/kfet_open
2017-03-05 19:51:51 +01:00
Qwann
b0b2210e93
Merge branch 'qwann/k-fet/home' of git.eleves.ens.fr:cof-geek/gestioCOF into qwann/k-fet/home
2017-03-05 19:44:08 +01:00
Qwann
9f94262b82
removing inapropriate message
2017-03-05 19:43:26 +01:00
Qwann
f52aba8ca6
Merge branch 'k-fet' into qwann/k-fet/home
2017-03-05 19:21:20 +01:00
Aurélien Delobelle
95b129e396
resolved merge conflict in kfet views imports
2017-02-25 02:00:56 +01:00
Martin Pepin
a0a7be43e1
Merge branch 'Aufinal/fix_revente' into 'master'
...
Répare les boutons de transfert/réinitialisation de revente. Le problème
était dû à une mauvaise conversion `str` -> `int` de l'id de la revente
et l'utilisation d'un formulaire Django élimine ce problème.
fixes #122
See merge request !172
2017-02-22 14:08:00 +01:00
Ludovic Stephan
42a93027d3
fix pep8 + move template
2017-02-21 19:49:29 -03:00
Ludovic Stephan
d96f4ead87
Revert "remove immediate mail"
...
This reverts commit 8953d3de07
.
2017-02-16 09:55:19 -02:00
Ludovic Stephan
8953d3de07
remove immediate mail
2017-02-16 09:22:15 -02: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
Evarin
ddbcfe0c69
JS commenté et plus propre
2017-02-15 22:25:26 +01:00
Evarin
0fcb29252b
Frontend tout en JS
2017-02-15 21:01:54 +01:00
Qwann
46f343b1ab
la K-Fêt se réveille à 7h
2017-02-15 14:44:58 +01:00
Qwann
1c90608f6d
some cleaning
2017-02-15 14:21:00 +01:00
Martin Pépin
451fddaff0
Fix CI script
...
Finally, the old test database is destroyed before the build which
is simpler and makes more sense.
2017-02-13 17:43:10 +01:00
Martin Pépin
e8d21882fb
Fix CI config
...
cleanup is not a stage by default, it has to be specified
2017-02-13 17:33:35 +01:00
Martin Pépin
85e593ddb8
Removes the test database if the build fails
...
Sometime the test database is not destroyed because the build is
interrupted by an uncaught error. This causes an error during the next
build.
2017-02-13 17:27:27 +01:00
Aurélien Delobelle
ef864cec32
Merge branch 'Aufinal/visibilite_stock' into 'k-fet'
...
K-Psul
Articles
- Ajout d'une surbrillance pour les articles dont le stock est bas
(entre -5 et 5)
Panier
- Ajout d'indications de stocks sur chaque ligne (stock, warning visuel)
- Les ajouts/retraits d'articles déjà dans le panier mettent à jour la
ligne associée à celui-ci déjà existante
- Les flèches haut/bas permettent de modifier la quantité d'un article
Fix #111
See merge request !133
2017-02-13 16:42:22 +01:00
Aurélien Delobelle
2e8fc45a1b
Merge branch 'Aufinal/own_password' into 'k-fet'
...
Changement de son propre mot de passe
Permet à un K-Fêteux (disposant de la permission `kfet.is_team`) de modifier son propre mot de passe sur la page `account/XXX/edit`.
Accessoirement, la fonction `account_update` est maintenant conforme à PEP8.
Fix #121
See merge request !148
2017-02-13 16:32:40 +01:00
Ludovic Stephan
46e9e82da8
move account save
2017-02-13 12:19:47 -02:00
Qwann
9cae3ad0bd
Merge branch 'k-fet' into qwann/k-fet/stats
2017-02-13 14:37:29 +01:00
Ludovic Stephan
83e41c292e
css tweaks
2017-02-13 11:34:47 -02:00
Ludovic Stephan
43aab26530
Merge branch 'k-fet' of git.eleves.ens.fr:cof-geek/gestioCOF into Aufinal/visibilite_stock
2017-02-13 10:51:24 -02:00
Aurélien Delobelle
1a684471c2
Merge branch 'Aufinal/fix_amounts' into 'k-fet'
...
K-Psul:
- fix #163 : different rounding for UKF accounts balances / UKF articles prices
See merge request !171
2017-02-13 08:25:13 +01:00
Ludovic Stephan
3fa0e4de6c
different rounding for accounts
2017-02-12 19:05:41 -02:00
Ludovic Stephan
3dfd8bf616
interface for order_to_inventory
2017-02-12 18:04:50 -02:00
Ludovic Stephan
031b992fa3
fix brackets & lowstock indication
2017-02-12 11:09:03 -02:00
Ludovic Stephan
99d04fb75e
bugfix
2017-02-12 11:02:54 -02:00
Aurélien Delobelle
4a5d9f880a
Merge branch 'Aufinal/fix_amounts' into 'k-fet'
...
Corrige l'affichage du prix
!124 était overkill ; `amountToUKF` peut prendre en argument des valeurs positives ou négatives, et il me semble que le `round` ne sert quà corriger les erreurs de `float`, ce qui conduit à #128 . Du coup, on revert une partie.
fixes #128
See merge request !163
2017-02-12 05:09:30 +01:00
Ludovic Stephan
db899a891b
css tweaks
2017-02-12 02:03:41 -02:00
Ludovic Stephan
15d79aff2d
add help tooltips
2017-02-12 00:48:24 -02:00
Ludovic Stephan
be8eb4ac28
add (temporary) better presentation
2017-02-12 00:01:22 -02:00
Aurélien Delobelle
49e6101156
Merge branch 'qwann/k-fet/decimal_issue2' into 'k-fet'
...
Qwann/k fet/decimal issue2
`grant` is a Decimal and thus can not be casted implicitly to float.
See merge request !158
2017-02-11 22:04:10 +01:00
Aurélien Delobelle
db4786abf8
Merge branch 'manet/correction-commandes' into 'k-fet'
...
Manet/correction commandes
- Fix création de commandes (fournisseur)
Fix #97
See merge request !128
2017-02-11 22:00:45 +01:00
Qwann
f87f1ceff1
kfetOpen bullet working
2017-02-11 00:29:12 +01:00
Qwann
4808650fa0
kfet_open is updatable
2017-02-09 14:05:29 +01:00
Qwann
ef59c115f6
avec le css c'est mieux
2017-02-08 15:40:58 +01:00
Qwann
6be2adc47a
removing "open-Kfet-feature"
...
to keep it for an other merge request
2017-02-08 12:47:11 +01:00
Qwann
a4fdb99267
Revert "WS : quand la K-Fêt est ouverte ?"
...
This reverts commit ce9f717f06
.
2017-02-08 12:42:07 +01:00
Ludovic Stephan
8d0f803639
Corrige l'affichage du prix
...
fixes #128
2017-02-06 16:42:19 -02:00
Ludovic Stephan
5654fd84e8
Merge branch 'k-fet' of git.eleves.ens.fr:cof-geek/gestioCOF into Aufinal/own_password
2017-02-06 16:37:48 -02:00
Ludovic Stephan
2394a5e5d2
add low stock css to WS
2017-02-05 21:38:13 -02:00
Ludovic Stephan
95e96d8ce5
Merge branch 'k-fet' of git.eleves.ens.fr:cof-geek/gestioCOF into Aufinal/visibilite_stock
2017-02-05 19:56:34 -02:00
Qwann
44202811ae
not supporting future.builtins anymore in templatetags
2017-02-05 22:39:20 +01:00
Martin Pepin
5b0dc1a07f
Merge branch 'fix/117' into 'k-fet'
...
Fix #117 .
Not tested because there's no unittests.
Reviewed by @manet.
See merge request !134
2017-02-04 11:23:30 +01:00
Aurélien Delobelle
1bf5352097
Merge branch 'Aufinal/fix_87' into 'k-fet'
...
Fixes #87
Le field `groups` de `UserGroupForm` accepte les valeurs vides, ce qui permet la destitution de K-Fêt.
See merge request !157
2017-02-02 12:28:56 +01:00
Aurélien Delobelle
d5bf249212
Merge branch 'qwann/k-fet/stock_update' into 'k-fet'
...
fixes #127
Si je ne me trompe pas, c'était juste un selecteur jQuery qui ne fonctionnait pas. fixes #127
See merge request !156
2017-02-02 12:24:54 +01:00
Qwann
bc14205d29
fixing decimal issue2
2017-02-01 19:32:18 +01:00
Ludovic Stephan
47d7a3ec6e
fixes #87
2017-01-31 16:35:52 -02:00
Qwann
863699bfb6
Merge branch 'qwann/k-fet/stock_update' of git.eleves.ens.fr:cof-geek/gestioCOF into qwann/k-fet/stock_update
2017-01-31 16:03:00 +01:00
Qwann
1275fdff99
fixes #127
...
fixing stock update
2017-01-31 16:00:44 +01:00
Qwann
a400832c6d
fixing stock update
2017-01-31 15:55:38 +01:00
Qwann
ce9f717f06
WS : quand la K-Fêt est ouverte ?
2017-01-27 21:46:21 +01:00
Qwann
ddf6343826
Merge branch 'qwann/k-fet/stats' into qwann/k-fet/home
2017-01-27 13:13:28 +01:00
Qwann
df824a3a70
Merge branch 'k-fet' into qwann/k-fet/stats
2017-01-27 13:10:31 +01:00
Qwann
0ac1eaf414
fixing decimal_issue
2017-01-27 13:08:50 +01:00
Qwann
5cedabf5a8
Merge branch 'qwann/k-fet/stats' into qwann/k-fet/home
2017-01-27 12:15:47 +01:00
Qwann
2f1fe15be3
fixing decimal_issue merging
2017-01-27 12:08:18 +01:00
Qwann
5ee188e4df
Merge branch 'qwann/k-fet/stats' of git.eleves.ens.fr:cof-geek/gestioCOF into qwann/k-fet/stats
2017-01-27 11:56:39 +01:00
Qwann
a13c40736c
Merge branch 'k-fet' of git.eleves.ens.fr:cof-geek/gestioCOF into qwann/k-fet/stats
2017-01-27 11:54:50 +01:00
Qwann
7ab4e949d8
k-fet in gestiocof menu
2017-01-26 20:40:55 +01:00
Qwann
aa1afccf1f
adding argumement hidden
to Article
...
in order to avoid some articles to appear in the menu
2017-01-26 19:22:38 +01:00
Qwann
3ca38bd8e9
Carte done.
2017-01-26 17:19:42 +01:00
Martin Pepin
75ff77c4ec
Merge branch 'Aufinal/search_account' into 'k-fet'
...
Popup de recherche de compte
Quand on clique sur l'icone de recherche (ou qu'on appuie sur Ctrl+F depuis la zone de saisie de trigramme) un popup apparaît pour rechercher les comptes par prénom ou par nom, en utilisant `autocomplete`.
Fix #109
See merge request !153
2017-01-25 23:58:08 +01:00
Qwann
a63966b2f6
carte styling done
2017-01-25 23:41:16 +01:00
Martin Pépin
bd7f767953
Cleanup
...
- Un peu de PEP8
- Suppression d'une partie de la py2 compat
- Typos
2017-01-25 23:23:53 +01:00
Qwann
9607fab046
future removed
2017-01-25 16:00:48 +01:00
Qwann
0d1cece6db
adding columns features
2017-01-24 19:56:58 +01:00
Martin Pepin
939e0f32a2
Merge branch 'qwann/decimal_fixes' into 'k-fet'
...
Qwann/decimal fixes
Répare les problèmes suivants :
* On ne pouvait pas lire la balance d'un compte à l'aide du templatetag correspond sur lequel était effectué un mauvais cast en float
* On ne pouvait pas effectuer d'opération à cause d'une absence de cast en Decimal pour operation.amount
See merge request !154
2017-01-24 19:49:33 +01:00
Qwann
f48f6c57a7
Merge branch 'qwann/decimal_fixes' into qwann/k-fet/stats
2017-01-24 19:43:08 +01:00
Qwann
94f8705ea4
wrong merge fixed
2017-01-24 19:42:15 +01:00
Qwann
df2a9bb1b3
factorising BalanceStat views
2017-01-24 16:56:26 +01:00
Qwann
947de3b638
wrong months in 'last months' stats
2017-01-20 21:21:58 +01:00
Qwann
61a7f2df1e
sourcing get_thing in a js file
2017-01-20 21:05:22 +01:00
Qwann
232b293052
typos fixed
2017-01-20 20:27:24 +01:00
Qwann
f8c49ae90c
docstring instead of comments
2017-01-20 20:19:28 +01:00
Qwann
e6854d7987
using strftime instead of a personnal function
2017-01-20 20:19:16 +01:00
Qwann
de3db1405e
Merge branch 'qwann/decimal_fixes' into qwann/k-fet/stats
2017-01-20 18:53:49 +01:00
Qwann
fff7a2022b
conflict solved
2017-01-20 18:45:28 +01:00
Qwann
8b4f7ad60c
decimal cast for operation.amount
2017-01-20 18:34:45 +01:00
Qwann
7e5910e0b3
balance templatetag fixed
2017-01-20 18:10:49 +01:00
Ludovic Stephan
1b0144691f
No need for len of query
2017-01-20 07:32:11 -02:00
Ludovic Stephan
832dc0ce10
Search shortcut
2017-01-19 22:54:11 -02:00
Ludovic Stephan
016989c4de
search results css
2017-01-19 22:53:58 -02:00
Ludovic Stephan
e7956f3b62
Account search w/ autocomplete
2017-01-19 12:36:40 -02:00
Ludovic Stephan
eff37f6c89
plain text highlighting
2017-01-19 01:42:00 -02:00
Ludovic Stephan
88aec52141
PEP8 + typo
2017-01-19 01:22:04 -02:00
Qwann
bdbb252a05
Revert "first fixes"
...
This reverts commit 5877218af5
.
2017-01-17 17:16:53 +01:00
Ludovic Stephan
d6e13dbd61
Merge branch 'k-fet' of git.eleves.ens.fr:cof-geek/gestioCOF into Aufinal/visibilite_stock
2017-01-16 23:57:27 -02:00
Qwann
1ddd34d50e
Merge branch 'qwann/k-fet/stats' of git.eleves.ens.fr:cof-geek/gestioCOF into qwann/k-fet/stats
2017-01-14 16:24:56 +01:00
Qwann
a14f1db9a1
doc added for kfet new fixtures
2017-01-14 16:23:45 +01:00
Michele Orrù
76db0c86a3
Add fixtures.
...
Create fixtures for kfet application:
- Add a bunch of non-cof profiles whose "last_name" is "Romain";
- Add k-fet articles using the real ones as a template;
- Add LIQ account;
- Add groups K-fet Chef and K-fet Girl;
- Add "caisse".
We also added some template for future tests (well, actually it's the script
used to generate the fixtures…).
2017-01-14 16:23:45 +01:00
Qwann
5877218af5
first fixes
2017-01-14 16:23:45 +01:00
Ludovic Stephan
fabd0949e2
correct imports
...
Signed-off-by: Ludovic Stephan <lstephan@clipper.ens.fr>
2017-01-10 15:15:53 -02:00
Ludovic Stephan
6315ddf6b8
move pwd change to method
...
Signed-off-by: Ludovic Stephan <lstephan@clipper.ens.fr>
2017-01-10 12:58:35 -02:00
Ludovic Stephan
7dc7d57a5e
restrict to team even if malicious POST edit
2017-01-07 13:57:54 -02:00
Ludovic Stephan
fcf76b4af8
can change own password (actually working now)
2017-01-07 13:32:05 -02:00
Ludovic Stephan
2a20beeb59
pep8
2017-01-07 13:28:53 -02:00
Ludovic Stephan
1c5c1fe94d
can change own password
2017-01-07 12:47:43 -02:00
Qwann
74f4d94f28
first fixes
2016-12-27 15:44:58 +01:00
Qwann
219835be17
putting away some code for future improvments
2016-12-24 12:42:35 +01:00
Qwann
de9387c6ad
cleaning: PEP8, html, permissions
2016-12-24 12:34:11 +01:00
Qwann
7070129add
evolution de la balance\n premier jet
2016-12-21 11:51:08 +01:00
Qwann
ccf7c4a484
ma conso added
2016-12-20 22:46:38 +01:00
Ludovic Stephan
e981cad405
css tweaks
2016-12-20 16:48:09 -02:00
Ludovic Stephan
5784b4d20a
change stock warning CSS for basket
2016-12-20 01:09:22 -02:00
Michele Orrù
783332bbe0
Fix #117 .
...
Not tested because there's no unittests.
Reviewed by @manet.
2016-12-19 19:52:30 +01:00
Qwann
0c3c41a812
small changes
2016-12-19 16:36:23 +01:00
Ludovic Stephan
4db55efb67
change stock warning threshold
2016-12-14 23:40:42 -02:00
Ludovic Stephan
75be9fd2a6
display stock with mouse selection
2016-12-14 23:40:23 -02:00
Ludovic Stephan
b7ebf4ee1c
add stock to article selection
2016-12-13 22:31:52 -02:00
Ludovic Stephan
71fee9bf8a
temporary low stock css
2016-12-13 20:58:40 -02:00
Ludovic Stephan
080ff0f821
warning if not enough stock
2016-12-13 01:41:59 -02:00
Ludovic Stephan
711ef7e97b
one line by article id
2016-12-13 01:13:16 -02:00
Ludovic Stephan
9443f86298
use arrow keys to add/remove article
2016-12-13 01:11:35 -02:00
Ludovic Stephan
437233fd10
functions to change purchase amount
2016-12-13 00:33:25 -02:00
Ludovic Stephan
5492ecf534
add ukf for price visibility
2016-12-13 00:32:52 -02:00
Qwann
4da9327666
Merge branch 'k-fet' of git.eleves.ens.fr:cof-geek/gestioCOF into qwann/k-fet/stats
2016-12-11 20:45:52 +01:00
Qwann
83d49ad3a4
WIP articleCategory stat
2016-12-10 23:08:17 +01:00
Qwann
14f021b5b0
WIP articleCategory stat
2016-12-10 23:06:38 +01:00
Qwann
d19daa04b1
resuming views for stat
2016-12-10 17:33:24 +01:00
Qwann
3a7ffefacf
week & day stat
2016-12-09 21:45:34 +01:00
Qwann
e4c8209df8
first tests
2016-12-09 21:44:38 +01:00
Qwann
cb9b967d78
debug toolbar
2016-12-09 21:43:42 +01:00
Hugo Manet
92ec85dbbd
Ajout d'un .distinct() dans la selection des articles liés à un supplier
2016-12-07 21:35:27 +01:00