Commit Graph

28 Commits

Author SHA1 Message Date
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
ceb2888f82 enhance admin pages 2022-12-19 20:55:33 +01:00
Sli
98bfc308a7 Minimal working version
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +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
a69f7b12b1
pedagogy: add script to remove all previous doubled comments 2019-09-04 20:49:17 +02:00
07fc1014be
pedagogy: put methods after properties in models 2019-07-09 16:59:59 +02:00
c15ea345dd
pedagogy: generate search form radios trough loop and remove semester_translated 2019-07-08 15:17:12 +02:00
4a19441a17
pedagogy: translations for semesters in details and handle markdown 2019-07-06 01:16:09 +02:00
3e3c576ad7
pedagogy: live uv update on guide 2019-07-05 20:11:33 +02:00
205f93569a
pedagogy: grade averages for UVs 2019-07-04 18:07:51 +02:00
75a2aefd69
pedagogy: display if comment is reported 2019-06-20 15:03:51 +02:00
55e822412a
pedagogy: full test suite for pedagogy moderation 2019-06-20 14:57:58 +02:00
3d0f5c0a15
pedagogy: base for uv comment moderation 2019-06-20 01:29:12 +02:00
2aa465b138
pedagogy: don't update uv comment publish date at each save 2019-06-19 00:35:44 +02:00
e7b8ddb631
pedagogy: importation from old uv guide 2019-06-18 17:20:10 +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
8512f3c5d0
pedagogy: fix some previous tests never launched and test for display/create/delete of UVComment 2019-06-16 18:26:30 +02:00
5003e57338
pedagogy: functional but basic uv comment system 2019-06-16 17:02:45 +02:00
b7c2da53fe
pedagogy: models for UVComment and UVResult 2019-06-16 16:02:27 +02:00
ab344ba02f
pedagogy: complete CRUD for UV model 2019-06-16 00:29:46 +02:00
ec33311715
pedagogy: basic display list of UV 2019-06-15 23:31:31 +02:00
5bf5d0277c
pedagogy: create view and form for UV
WARNING: A new group has been created, to be set by the infra team at deployment !!!
2019-06-15 17:01:25 +02:00
31f6ee9ca4
pedagogy: create first iteration of UV model 2019-06-15 14:17:49 +02:00
57f2a5c260
pedagogy: rename Study into StudyField 2019-06-15 12:49:13 +02:00
36831b4f4a
pedagogy: rename TeachingDepartment into EducationDepartment 2019-06-15 12:49:13 +02:00
17a375f89c
pedagogy: structure of the app 2019-06-15 12:49:13 +02:00