Commit Graph

59 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
Sli
320a896610 Fix tests and broken forms 2022-08-04 17:20:21 +02:00
274a7b7137
core/club: allow adding custom js action to pagination link, useful for FormDetailView with pagination 2019-11-28 01:46:41 +01:00
8dd2c02d3e
club: add pagination for ClubSellingView 2019-11-28 00:30:51 +01:00
af48553e35
club: separation between archived products and non archived ones 2019-11-27 16:23:14 +01:00
d1fb9cc4c3
clubs: remove moderator and club from mailing form + display not moderated mailings 2019-05-09 17:43:47 +02:00
1d07195881
clubs: add bulk deletion on mailing lists 2019-05-01 22:54:18 +02:00
a0e39b8904 clubs: rewrite MailingForm to include everything in one place
Everything is handled on the same view, no more redirection hacks

Remove get_context_data in DetailFormView since it's already done by django
2019-05-01 15:49:30 +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
f6ab993b8d wiki: remove old markdown preview 2018-12-20 14:32:52 +01:00
gnikwo
21b24f2891
Club views and discussions fixes 2017-11-28 15:12:04 +01:00
8146186447
Fix some bugs in mailings with new club tools 2017-10-06 11:09:31 +02:00
4800db3c2c
Add auto generation for mailing lists 2017-10-06 11:09:31 +02:00
baa7be69e4
Better integration of wiki pages on clubs 2017-10-06 11:09:31 +02:00
2c1cf2d7af
Fix for club tools 2017-10-06 11:09:31 +02:00
4026d076b3
Forgoten migration from skia and fixed migration 2017-10-06 11:09:30 +02:00
db509bf060
Nice club presentation 2017-10-06 11:09:30 +02:00
fe69cbcee1
Add page for clubs and inactive clubs 2017-10-06 11:09:29 +02:00
4f6109e27c Refactor mailings email 2017-08-22 22:39:12 +02:00
470680e760 Add moderation for mailing lists 2017-08-22 15:36:39 +02:00
76efb91e40 Move mailing list admin to com 2017-08-22 15:36:39 +02:00
69e997d587 Refactoring mailings 2017-08-22 15:36:39 +02:00
8c9f02a142 Add fetch function for DSI 2017-08-22 15:36:39 +02:00
9cb88a878d Even better mailing 2017-08-22 15:36:39 +02:00
feaf6b73b7 Begin mailing list system 2017-08-22 15:36:39 +02:00
Skia
f2b2ff533d Rename Matmat to Trombi 2017-05-10 22:17:05 +02:00
Skia
b3bc33a319 Add first Matmat' app 2017-05-10 19:19:33 +02:00
Skia
3cf1628435 Fix weekmail new article link 2017-03-24 14:01:05 +01:00
Skia
097d238962 Improve weekmail 2017-01-15 22:58:37 +01:00
2c71c18d1b --amend 2017-01-05 18:02:02 +01:00
86e3c09bae Add benefit on sellings view 2017-01-05 15:48:06 +01:00
Skia
114272df2f Add simple club stats 2017-01-04 17:38:54 +01:00
Skia
1dc1a0a42c Add news moderation tool 2016-12-23 18:40:37 +01:00
2dd2189314 Download sellings as csv 2016-11-08 14:57:09 +01:00
132bae72a7 Fix club account name display for clubs 2016-10-16 00:23:13 +02:00
Skia
a12f9dd53e Fix club sellings 2016-10-03 13:55:20 +02:00
Skia
51f342a7d3 Add invoices calls 2016-09-29 18:19:58 +02:00
Skia
ffd4dac2e2 Allow club staff to delete their sellings 2016-09-22 12:52:15 +02:00
Skia
54444b31ba Some template improvements 2016-09-11 19:00:12 +02:00
Skia
5b5006892d Make sellings for clubs 2016-09-09 16:23:35 +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
078b63d970 Migrate accounting 2016-08-24 19:50:22 +02:00
Skia
e1474c7a74 Add is_root property to user 2016-08-14 04:35:08 +02:00
Skia
a033c4dfd2 Improve launderette rights to match with launderette club 2016-08-13 16:39:09 +02:00