13 Commits

Author SHA1 Message Date
thomas girod
b25805e0a1 introduce djhtml as jinja+scss formater 2024-07-25 16:46:45 +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
f72f0639ee
clubs: display a message instead of a table when no member in a club 2019-04-25 17:38:17 +02:00
68f61a432a
clubs: adapt tests to new display and fix form validation issue for start_date 2019-04-25 17:31:42 +02:00
3eb3565a63
clubs: nice display of bulk mark as old 2019-04-25 16:36:20 +02:00
d5ad2c5141
clubs: Handle bulk add of users in clubs and refresh of the form handling 2019-04-24 03:10:42 +02:00
Skia
b1f6754e6e Refactor lots of tabed templates, and create TabedViewMixin 2016-09-04 19:25:03 +02:00
Skia
c62d3f4f4a Add old membership views 2016-09-02 21:21:57 +02:00
Skia
29f565f514 Improve club templates 2016-09-02 09:23:21 +02:00
Skia
6af16cc893 Some basic templating 2016-08-31 17:18:21 +02:00
Skia
97ff4341a7 Translate most of the Sith 2016-07-19 19:03:16 +02:00
Skia
ed080b76a2 WIP: Club member form 2016-02-04 08:59:03 +01:00
Skia
d51ab088d8 Add first club views, this still sucks, particularly on the right managment 2016-02-02 16:34:36 +01:00