Sith/core/templates/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
..
403.jinja Better handle 403 with next argument 2016-08-07 20:36:06 +02:00
404.jinja Mise à jour de février (#581) 2023-03-09 13:39:33 +01:00
500.jinja Modal window is now autocompleted if user is logged in 2022-08-27 20:14:31 +02:00
base.jinja Merge branch 'master' into taiste 2023-04-05 20:02:12 +02:00
create.jinja Fix form with files 2016-08-31 15:29:16 +02:00
delete_confirm.jinja Add a first version of a mobile friendly UI 2021-10-01 18:44:14 +02:00
edit.jinja Add link to create club in rootplace 2016-10-18 23:36:26 +02:00
file_delete_confirm.jinja Improve and fix user accounts 2016-08-18 21:06:10 +02:00
file_detail.jinja Better usage of cache for groups and clubs related operations (#634) 2023-05-02 12:36:59 +02:00
file_edit.jinja Add nice whole file support 2016-08-10 05:48:06 +02:00
file_list.jinja add font-awesome 2017-09-29 14:35:06 +02:00
file_moderation.jinja Add file moderation tool 2016-11-23 00:51:20 +01:00
file.jinja core, com: tool bar and agenda design updates 2017-09-03 19:05:45 +02:00
group_detail.jinja core: add macro that selects/unselect all checkbox 2019-04-22 22:55:55 +02:00
group_edit.jinja Translate most of the Sith 2016-07-19 19:03:16 +02:00
group_list.jinja Group: improve group list display 2019-04-22 22:55:55 +02:00
login.jinja Mise à jour de mars (#586) 2023-04-04 19:17:44 +02:00
macros_pages.jinja wiki: remove old markdown preview 2018-12-20 14:32:52 +01:00
macros.jinja Make pronouns visible on profile and miniprofile 2021-10-13 08:59:40 +02:00
markdown_textarea.jinja Isolate easymde instances so that they can be referenced 2019-10-16 12:18:23 +02:00
new_user_email_subject.jinja Send a mail when someone is subscribed 2016-08-31 18:40:17 +02:00
new_user_email.jinja Send a mail when someone is subscribed 2016-08-31 18:40:17 +02:00
notification_list.jinja Fix notifications local time 2017-03-17 18:11:30 +01:00
page_detail.jinja Add product management views 2016-07-27 17:23:02 +02:00
page_hist.jinja Better integration of wiki pages on clubs 2017-10-06 11:09:31 +02:00
page_list.jinja Sanitize page name 2017-02-24 04:36:36 +01:00
page_prop.jinja Add page for clubs and inactive clubs 2017-10-06 11:09:29 +02:00
page.jinja Better integration of wiki pages on clubs 2017-10-06 11:09:31 +02:00
pagerev_edit.jinja wiki: remove old markdown preview 2018-12-20 14:32:52 +01:00
password_change_done.jinja Translate most of the Sith 2016-07-19 19:03:16 +02:00
password_change.jinja Allow root to reset user password 2016-08-13 17:15:45 +02:00
password_reset_complete.jinja Translate most of the Sith 2016-07-19 19:03:16 +02:00
password_reset_confirm.jinja core: fix error 500 with expired reset password links 2019-09-10 16:56:58 +02:00
password_reset_done.jinja Translate most of the Sith 2016-07-19 19:03:16 +02:00
password_reset_email.jinja Finish the move to Jinja2 2016-02-02 11:00:08 +01:00
password_reset.jinja Translate most of the Sith 2016-07-19 19:03:16 +02:00
poster_list.jinja Ready for review 2017-11-28 15:12:25 +01:00
register.jinja Mise à jour de mars (#586) 2023-04-04 19:17:44 +02:00
screen_slideshow.jinja Implémentation 3DSv2 + résolution bugs eboutic + amélioration pages admin (#558) 2023-01-09 20:53:12 +01:00
search.jinja Add basic search bar 2016-08-19 02:53:44 +02:00
to_markdown.jinja Add basic BBcode translator 2017-05-30 23:40:01 +02:00
user_account_detail.jinja core/counter: add generic operation logs and implements it for Sellings and Refilling deletions 2019-11-14 01:14:44 +01:00
user_account.jinja Migration from old database 2017-08-15 13:57:49 +02:00
user_clubs.jinja Better usage of cache for groups and clubs related operations (#634) 2023-05-02 12:36:59 +02:00
user_detail.jinja Better usage of cache for groups and clubs related operations (#634) 2023-05-02 12:36:59 +02:00
user_edit.jinja Better usage of cache for groups and clubs related operations (#634) 2023-05-02 12:36:59 +02:00
user_godfathers_tree.jinja Updated text and translations to be more inclusive 2021-11-18 16:24:14 +01:00
user_godfathers.jinja Mise à jour de mars (#586) 2023-04-04 19:17:44 +02:00
user_group.jinja Mise à jour de mars (#586) 2023-04-04 19:17:44 +02:00
user_list.jinja Translate most of the Sith 2016-07-19 19:03:16 +02:00
user_mini.jinja Add ajax-select app and improve some templates 2016-08-19 23:24:23 +02:00
user_pictures.jinja [FIX] Fixes supplémentaires pour la màj de mars (#622) 2023-04-08 20:59:43 +02:00
user_preferences.jinja Mise à jour de mars (#586) 2023-04-04 19:17:44 +02:00
user_stats.jinja Mise à jour de mars (#586) 2023-04-04 19:17:44 +02:00
user_tools.jinja Better usage of cache for groups and clubs related operations (#634) 2023-05-02 12:36:59 +02:00