thomas girod
0eaa20e09d
fix localdate issues
2024-10-03 00:25:22 +02:00
thomas girod
8c69a94488
use google convention for docstrings
2024-07-21 00:57:04 +02:00
thomas girod
2ac578c3ad
ruff rule DJ
...
Co-authored-by: Bartuccio Antoine <klmp200@users.noreply.github.com>
2024-07-08 15:37:10 +02:00
thomas girod
cfc19434d0
ruff rules UP008 and UP009
2024-07-08 15:37:09 +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
a73fe598ef
repair user merging tool ( #498 )
2023-03-04 15:01:08 +01:00
Thomas Girod
751c8a8bc6
unify account_id creation
2023-01-09 21:40:38 +01:00
Thomas Girod
22b83b0814
remove useless tests
2022-12-12 22:56:06 +01:00
Thomas Girod
fe9e5ce861
integration of 3D secure v2 for eboutic bank payment
2022-11-30 22:52:56 +01:00
thomas girod
e0ad288cf4
Suppression des appels à la db de l'ancien site ( #483 )
2022-10-19 16:26:30 +02:00
98bfc308a7
Minimal working version
...
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +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
cb58b00b6e
All: Apply Black coding rules
2018-10-05 21:52:55 +02:00
Soldat
7a1b9bd412
compute_end count day by day now (not month by month like before) to allow 6 weeks cotiz
2018-09-01 17:45:13 +02:00
Skia
e9e51d34d3
subscription: fix compute_start
2018-04-16 14:54:47 +02:00
2f912a197c
Allow to subscribe before subscription end
2017-09-06 19:55:14 +02:00
3be64d6a8f
New subscription type for jewels
...
New condition to consider floats in subscriptions
2017-08-31 16:37:03 +02:00
94582a2d96
Free subscription for jewels
2017-08-31 16:18:28 +02:00
Skia
9ee5c387c5
subscription: add tests
...
Signed-off-by: Skia <skia@libskia.so>
2017-08-29 15:07:03 +02:00
e785ad985f
Add a new subscription for the Welcome Week
2017-08-21 21:06:05 +02:00
113c9e696b
Format subscription
2017-06-13 10:07:57 +02:00
Skia
5df9be9188
Move computing of start of semester to core/utils
...
Signed-off-by: Skia <skia@libskia.so>
2017-06-12 22:53:25 +02:00
Skia
11d20f43e5
Add some missing translations
...
Signed-off-by: Skia <skia@libskia.so>
2017-05-31 23:43:22 +02:00
87c457498c
Add small explanation in subscriptions
2017-05-10 10:32:30 +02:00
Skia
83deae5964
Apply GPLv3 to Sith, and add header to every concerned file
2017-04-24 17:51:12 +02:00
Skia
28431ec9be
Big refactor: remove Subscriber class
2016-12-10 01:58:30 +01:00
Skia
64761a83ed
Don't come with MySQL by default
2016-09-14 13:19:56 +02:00
8328e668bd
Fixed old database bug in dev env
2016-09-02 21:24:10 +02:00
Skia
a0b1fa32e7
Fix subscription form
2016-09-02 12:29:50 +02:00
Skia
bae34c4b1c
Fix double user creation
2016-09-02 09:47:33 +02:00
Skia
a4c5d48159
Some bug fixes
2016-09-01 10:00:31 +02:00
Skia
1f31d3b56f
Send a mail when someone is subscribed
2016-08-31 18:40:17 +02:00
Skia
cb90ab8e57
Fix link to old site
2016-08-30 17:41:42 +02:00
Skia
dfb13c37f2
Add INSERT to old DB for subscriptions and users
2016-08-29 02:19:29 +02:00
Skia
2b4a623e4a
First link to old site's DB
2016-08-29 01:34:08 +02:00
Skia
8e3eb1e2bf
Some templating and add webcam support for profile editing
2016-08-22 02:56:27 +02:00
Skia
66fdf6cbf7
Migrate and improve subscriptions
2016-08-14 19:28:14 +02:00
Skia
e1474c7a74
Add is_root property to user
2016-08-14 04:35:08 +02:00
Skia
a8858fa781
Add home for users and clubs
2016-08-10 16:23:12 +02:00
Skia
aa17c44bcc
Add location when subscribing
2016-08-05 00:51:04 +02:00
Skia
260a17ae4f
Improve generation of account id
2016-08-05 00:51:04 +02:00
Skia
3c4a9a89a8
Fix README
2016-07-28 13:02:10 +02:00
Skia
e3705f9fe2
Make sliding subscriptions for 1 or 2 semesters
2016-07-28 12:41:29 +02:00
Skia
7a267dbc3f
Create the customer when subscribing if it does not exists yet
2016-07-20 00:28:49 +02:00
Skia
0248bdf6d1
Update SubscriptionForm to allow creating user on the fly
2016-07-07 00:52:30 +02:00
Skia
bab3a38a2e
Small subscription fix
2016-07-06 01:32:41 +02:00