Sith/core
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
..
fixtures Galaxy (#575) 2023-03-02 15:11:23 +01:00
management Better usage of cache for groups and clubs related operations (#634) 2023-05-02 12:36:59 +02:00
migrations Mise à jour de Black vers la version 23.3 (#629) 2023-04-22 15:32:31 +02:00
scss Minimal working version 2022-08-04 00:28:09 +02:00
static [FIX] Fixes supplémentaires pour la màj de mars (#622) 2023-04-08 20:59:43 +02:00
templates Better usage of cache for groups and clubs related operations (#634) 2023-05-02 12:36:59 +02:00
templatetags [FIX] Broken link in readme and license fix (& update) (#591) 2023-04-04 18:39:45 +02:00
views Better usage of cache for groups and clubs related operations (#634) 2023-05-02 12:36:59 +02:00
__init__.py Mise à jour de mars (#586) 2023-04-04 19:17:44 +02:00
admin.py Mise à jour de mars (#586) 2023-04-04 19:17:44 +02:00
apps.py Better usage of cache for groups and clubs related operations (#634) 2023-05-02 12:36:59 +02:00
converters.py Mise à jour de février (#581) 2023-03-09 13:39:33 +01:00
lookups.py Mise à jour de mars (#586) 2023-04-04 19:17:44 +02:00
markdown.py Mise à jour de mars (#586) 2023-04-04 19:17:44 +02:00
middleware.py Mise à jour de mars (#586) 2023-04-04 19:17:44 +02:00
models.py Better usage of cache for groups and clubs related operations (#634) 2023-05-02 12:36:59 +02:00
operations.py Upgrade black and format accordingly 2020-08-27 15:59:42 +02:00
search_indexes.py search: make sure we don't have indexes that are too long 2021-09-28 01:44:15 +02:00
signals.py Better usage of cache for groups and clubs related operations (#634) 2023-05-02 12:36:59 +02:00
tests.py Better usage of cache for groups and clubs related operations (#634) 2023-05-02 12:36:59 +02:00
urls.py Mise à jour de février (#581) 2023-03-09 13:39:33 +01:00
utils.py Fixes pour la mise à jour de mars (#598) 2023-04-04 22:55:26 +02:00