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
thomas girod
99827e005b
upgrade re_path to path ( #533 )
2023-01-09 22:07:03 +01:00
98bfc308a7
Minimal working version
...
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
dee24fbc9c
Fix deprecation warnings
2022-08-03 21:48:37 +02:00
2616e8b24c
django2.2: relpace django.core.urlresolvers by django.urls
2019-10-08 22:46:01 +02:00
a69f7b12b1
pedagogy: add script to remove all previous doubled comments
2019-09-04 20:49:17 +02:00
a5d5c41dd6
pedagogy: fix a bug when updating an UV from a different author
2019-08-27 22:46:41 +02:00
d03835d737
pedagogy: allow search on uv title
2019-07-08 00:54:53 +02:00
30ccbdc32d
pedagogy: fix search api when searching one letter (case sensitivity)
2019-07-07 18:55:23 +02:00
3e3c576ad7
pedagogy: live uv update on guide
2019-07-05 20:11:33 +02:00
3376f4dfb4
pedagogy: fix typo for AUTUMN_AND_SPRING
2019-07-05 16:40:02 +02:00
6e7d351e8e
pedagogy: send notification to pedagogy admins at comment report
2019-07-04 15:32:00 +02:00
55e822412a
pedagogy: full test suite for pedagogy moderation
2019-06-20 14:57:58 +02:00
171d9a4381
pedagogy: tests and fixs for uv moderation form
2019-06-20 14:22:06 +02:00
624f1d653d
pedagogy: tests for search API
2019-06-19 10:04:29 +02:00
358a625cc4
pedagogy: simplify and implement department system according to old database model
2019-06-18 10:56:05 +02:00
d44fa73b2a
pedagogy: Fix grade range on UVCOmment
2019-06-17 18:42:33 +02:00
5ccb499665
pedagogy: full test suite for UVComment
2019-06-16 20:05:53 +02:00
8512f3c5d0
pedagogy: fix some previous tests never launched and test for display/create/delete of UVComment
2019-06-16 18:26:30 +02:00
598cdc0284
pedagogy: tests for uv deletion and update
2019-06-16 13:10:27 +02:00
692d9a25e3
pedagogy: tests for uv display
2019-06-16 12:44:55 +02:00
38f6c27983
pedagogy: tests for uv creation
2019-06-16 12:19:04 +02:00
17a375f89c
pedagogy: structure of the app
2019-06-15 12:49:13 +02:00