Commit Graph

97 Commits

Author SHA1 Message Date
thomas girod
9bdf3fc4ac use ruff for formating
Co-authored-by: Bartuccio Antoine <klmp200@users.noreply.github.com>
2024-06-26 12:35:14 +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
thomas girod
96dede5077
Speed up tests (#638) 2023-05-02 11:00:23 +02:00
thomas girod
b5a40cfda9
Mise à jour de Black vers la version 23.3 (#629) 2023-04-22 15:32:31 +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
99827e005b
upgrade re_path to path (#533) 2023-01-09 22:07:03 +01:00
Sli
98bfc308a7 Minimal working version
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
Skia
a3158253a7 Black update 2021-09-26 13:58:39 +02:00
Skia
6a352d642b accounting: fix tests with a computed date instead of hard-coded one 2021-04-23 12:02:03 +02:00
cd2d3ee6b4
django2.2: fix tests for accounting 2019-10-08 22:46:38 +02:00
f7548ab8d1
django2.2: add on_delete on migrations for OneToOneField 2019-10-08 22:46:03 +02:00
3cb306bc91
django2.2: add on_delete on migrations for ForeignKey 2019-10-08 22:46:03 +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
be855c6c90
django2.2: migrate url to re_path 2019-10-08 22:46:01 +02:00
18f464a49f small fix to follow python recommendations 2019-02-02 00:32:34 +01:00
8388f4ee65 Avoid error 500 when target is forgotten 2018-12-18 23:50:24 +01:00
cb58b00b6e
All: Apply Black coding rules 2018-10-05 21:52:55 +02:00
08de5dfe6a
Migration to django 1.11 2018-06-10 16:31:58 +02:00
5fb57e97f7 Add possibility to not link an operation 2017-10-22 22:29:36 +02:00
3104270675 Few changes in accounting design 2017-10-09 16:24:34 +02:00
f8e0147bf5 Small fix on accounting permissions 2017-06-26 11:17:30 +02:00
544ff630a5 Format accounting 2017-06-13 09:48:24 +02:00
43b1d1f3b5 Fix operation form 2017-06-12 19:29:47 +02:00
0e171fbc8f add some validationErrors on OperationForm 2017-06-09 16:06:18 +02:00
2ef3c0260a Fix error on accounting when no target_type specified 2017-05-06 21:15:44 +02:00
Skia
83deae5964 Apply GPLv3 to Sith, and add header to every concerned file 2017-04-24 17:51:12 +02:00
Skia
39b32d456c Some com templates improvments and reordering some models 2017-03-24 09:19:15 +01:00
cfcb671bf0 forgoten o of shame (not for me) 2017-03-14 19:09:12 +01:00
5932aad9fa Improve journal removing 2017-03-12 20:33:17 +01:00
0bf457de50 Hiding some already forbidden stuff 2017-03-11 11:57:37 +01:00
8329a19cc2 fix permissions 2017-03-11 11:57:37 +01:00
95775d3b9b adaptations for settings and deletion checked 2017-03-11 11:57:37 +01:00
1acac17d7e Several modifications in accounting 2017-03-11 11:57:37 +01:00
8133db804e fix permission for companies 2017-03-11 11:57:37 +01:00
6f48b4a2b0 small fix in pdf generation for operations 2017-01-20 16:00:02 +01:00
Skia
fbb41c3cd5 Improve UX for accounting linked operation 2016-12-29 01:08:08 +01:00
16979aa3c1 tests for accounting 2016-12-25 12:09:32 +01:00
493148f761 new tests for operations 2016-12-24 16:16:14 +01:00
418537bc8e tests for accounting added 2016-12-24 16:16:14 +01:00
Skia
b07b408ecf Fix statements 2016-12-21 13:09:40 +01:00
Skia
f6d34baf59 Refactor statement by person, make it work 2016-12-21 05:42:33 +01:00
Skia
e6e4929eff Rename bilan to statement 2016-12-21 05:19:16 +01:00
Skia
bdcc0bf6e9 Remake the statement by nature 2016-12-21 05:19:16 +01:00
6d756423d9 tabs added 2016-12-21 05:19:16 +01:00
1457a7bf74 Bilan for accounting added 2016-12-21 05:19:16 +01:00
96c6bf8067 bilan added 2016-12-21 05:19:16 +01:00
5cd64fb384 bilan in development 2016-12-21 05:19:16 +01:00
6bb1e0e418 person bilan added and renamed classes 2016-12-21 05:19:16 +01:00