Julien Constant
f876bc3599
Unified header across all files
2024-06-26 19:17:57 +02:00
thomas girod
3143d3d91a
reorganize imports with ruff
2024-06-26 12:35:38 +02:00
Julien Constant
38295e591d
Fix immutable default variable in get_start_of_semester
( #656 )
...
Le serveur ne percevait pas le changement de semestre, parce
que la valeur par défaut passée à la fonction `get_start_of_semester()` était une fonction appelée une seule fois, lors du lancement du serveur. Bref, c'était ça : https://beta.ruff.rs/docs/rules/function-call-in-default-argument/
---------
Co-authored-by: imperosol <thgirod@hotmail.com>
2023-09-07 23:11:58 +02:00
thomas girod
ef968f3673
Better usage of cache for groups and clubs related operations ( #634 )
...
* Better usage of cache for group retrieval
* Cache clearing on object deletion or update
* replace signals by save and delete override
* add is_anonymous check in is_owned_by
Add in many is_owned_by(self, user) methods that user is not anonymous. Since many of those functions do db queries, this should reduce a little bit the load of the db.
* Stricter usage of User.is_in_group
Constrain the parameters that can be passed to the function to make sure only a str or an int can be used. Also force to explicitly specify if the group id or the group name is used.
* write test and correct bugs
* remove forgotten populate commands
* Correct test
2023-05-02 12:36:59 +02:00
Julien Constant
8e7c025e47
[FIX] Broken link in readme and license fix (& update) ( #591 )
2023-04-04 18:39:45 +02:00
thomas girod
6c1fa6de0b
remove-useless-queries-counter-stats ( #519 )
2023-03-24 15:32:05 +01:00
thomas girod
a73fe598ef
repair user merging tool ( #498 )
2023-03-04 15:01:08 +01:00
thomas girod
394e17d599
resolved importError ( #565 )
2023-01-13 02:22:53 +01:00
thomas girod
59136850b8
Merge pull request #530 from ae-utbm/redirection_for_barmen
...
redirect the user directly on counter when barman
2023-01-11 23:24:45 +01:00
thomas girod
d726f4b1e8
Merge pull request #499 from ae-utbm/unify-account-creation
...
Unify account id creation
2023-01-11 13:26:00 +01:00
thomas girod
705b9b1e6a
Passage de vue à Alpine pour les comptoirs ( #561 )
...
Vue, c'est cool, mais avec Django c'est un peu chiant à utiliser. Alpine a l'avantage d'être plus léger et d'avoir une syntaxe qui ne ressemble pas à celle de Jinja (ce qui évite d'avoir à mettre des {% raw %} partout).
2023-01-10 22:26:46 +01:00
Thomas Girod
31e8ad8a3e
redirect directly on counter if user is barman
2023-01-10 17:37:26 +01:00
Thomas Girod
751c8a8bc6
unify account_id creation
2023-01-09 21:40:38 +01:00
Théo DURR
4fe46fbcef
[FIX] 3DSv2 - Echappement du XML et modif tables ( #543 )
...
* Fixed wrong HMAC signature generation
* Updated migration files
Co-authored-by: Julien Constant <julienconstant190@gmail.com>
2023-01-09 17:46:34 +01:00
Théo DURR
fe8b8f46aa
Fix 3DSv2 implementation ( #542 )
...
* Fixed wrong HMAC signature generation
* Fix xml du panier
Co-authored-by: Julien Constant <julienconstant190@gmail.com>
2023-01-06 20:02:45 +01:00
Thomas Girod
ceb2888f82
enhance admin pages
2022-12-19 20:55:33 +01:00
thomas girod
1d82e2a7d9
Change country id to ISO 3166 1 numeric for 3DSV2 ( #510 )
2022-12-12 22:54:31 +01:00
thomas girod
b8a72c57e1
escape html characters on xml ( #505 )
2022-12-10 20:41:35 +01:00
Thomas Girod
fe9e5ce861
integration of 3D secure v2 for eboutic bank payment
2022-11-30 22:52:56 +01:00
Thomas Girod
60eff1000f
second patch on eboutic
2022-11-16 20:41:24 +01:00
Thomas Girod
8b09ba2924
refonte de la boutique en ligne
2022-10-30 12:33:21 +01:00
98bfc308a7
Minimal working version
...
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
Alexandre | L'Sacienne
454ae5f9e3
Add authorization to refill to the counters AE & BdF
2022-05-22 09:56:53 +00:00
lsacienne
f2666f6fb0
Replace the query by a function which already
...
existed
2022-05-02 00:04:00 +02:00
lsacienne
bbf362691b
Change to use settings instead of hardcoding
2022-04-27 15:38:55 +02:00
lsacienne
c6caf5dbce
Add of restriction for refilling
2022-04-20 14:01:33 +02:00
f34f5fe693
Upgrade black and format accordingly
2020-08-27 15:59:42 +02:00
566dcc7aee
counter: fix Selling view permission
2019-10-17 11:24:52 +02:00
241650c171
counter: fix eticket server crash induced by old permission system and fix Selling permission
2019-10-16 21:21:51 +02:00
Cyl
aac4e3b99c
Minor fix for requestGala
2019-10-14 00:32:11 +02:00
Robin Trioux
5a55a6c642
E-ticket link is sent in the email
2019-10-13 19:02:25 +02:00
6cc234e8d3
django2.2: add default mandatory on_delete on OneToOneField
2019-10-08 22:46:02 +02:00
4dadb1dbc0
django2.2: add default mandatory on_delete on all ForeignKey
2019-10-08 22:46:01 +02:00
2616e8b24c
django2.2: relpace django.core.urlresolvers by django.urls
2019-10-08 22:46:01 +02:00
1f3220246a
counter: fix a bug where you can't register UID card with only number inside
2019-05-24 08:38:15 +02:00
19e353970d
Enforce uid with uppercase for Studentcard and test more edge cases
2019-05-20 17:56:14 +02:00
5ae7d10e84
Add unit tests for student cards and fix edge cases
2019-05-20 17:56:09 +02:00
0ba0df0f29
Better handling of user rights for studentcards
2019-05-20 17:52:44 +02:00
616b7ccfc8
Nice user interface and permission rework
2019-05-20 17:52:39 +02:00
4669e5a4e9
Gui for studentcards in counters
2019-05-20 17:52:36 +02:00
577ad07a2b
Can identify user on counter with student card UID
2019-05-20 17:52:29 +02:00
cb58b00b6e
All: Apply Black coding rules
2018-10-05 21:52:55 +02:00
4af3239f4c
fix can_buy in customer
2017-12-01 01:44:38 +01:00
6113de33ec
Add comment in product type
2017-10-25 23:02:46 +02:00
Skia
9f259b35bd
core, counter: add preferences for counter notifications
...
Signed-off-by: Skia <skia@libskia.so>
2017-09-02 12:42:07 +02:00
de4521c192
Ecocup limit comments
2017-08-15 14:03:56 +02:00
748e3ae326
Refactor and migration corrections
2017-08-15 13:57:49 +02:00
240b68f98d
Allow negative amount for customer
2017-08-15 13:57:49 +02:00
7588cc8f73
Hardcoding ecocup values
2017-08-15 13:57:49 +02:00
40927fa13d
Add limit for ecocup recording
2017-08-15 13:57:49 +02:00