Commit Graph

73 Commits

Author SHA1 Message Date
thomas girod
0eaa20e09d fix localdate issues 2024-10-03 00:25:22 +02:00
thomas girod
f1afa3b436 fix memberships ending today 2024-09-04 16:21:42 +02:00
thomas girod
6962b39fc9 use typing.Self for custom queryset methods 2024-09-02 01:03:46 +02:00
thomas girod
3046438cb1 replace drf by django-ninja 2024-07-23 19:57:33 +02:00
thomas girod
8c69a94488 use google convention for docstrings 2024-07-21 00:57:04 +02:00
thomas girod
2ac578c3ad ruff rule DJ
Co-authored-by: Bartuccio Antoine <klmp200@users.noreply.github.com>
2024-07-08 15:37:10 +02:00
thomas girod
cfc19434d0 ruff rules UP008 and UP009 2024-07-08 15:37:09 +02:00
thomas girod
75bb3f992c fix: wrong logic in Club.delete() 2024-07-04 11:31:35 +02:00
thomas girod
3143d3d91a reorganize imports with ruff 2024-06-26 12:35:38 +02:00
Julien Constant
b30ee0a27a
[FIX] Correction de bugs (#617)
* Fix #600

* Fix #602

* Fixes & améliorations du nouveau CSS (#616)

* Fix #604

* should fix #605

* Fix #608

* Update core/views/site.py

Co-Authored-By: thomas girod <56346771+imperosol@users.noreply.github.com>

* Added back the permission denied

* Should fix #609

* Fix failing test when 2 user are merged

* Should fix #610

* Should fix #627

* Should fix #109

Block les URLs suivantes lorsque le fichier se trouve dans le dir `profiles` ou `SAS` :
- `/file/<id>/`
- `/file/<id>/[delete|prop|edit]`

> Les urls du SAS restent accessiblent pour les roots & les admins SAS
> Les urls de profiles sont uniquement accessiblent aux roots

* Fix root dir of SAS being unnaccessible for sas admins

⚠️ need to edit the SAS directory & save it (no changes required in sas directory properties)

* Remove overwritten code

* Should fix duplicated albums in user profile (wtf)

* Fix typo

* Extended profiles picture access to board members

* Should fix #607

* Fix keyboard navigation not working properly

* Fix user tagged pictures section inside python rather than in the template

* Update utils.py

* Apply suggested changes

* Fix #604

* Fix #608

* Added back the permission denied

* Should fix duplicated albums in user profile (wtf)

* Fix user tagged pictures section inside python rather than in the template

* Apply suggested changes

---------

Co-authored-by: thomas girod <56346771+imperosol@users.noreply.github.com>
2023-05-02 13:07:36 +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
thomas girod
b5a40cfda9
Mise à jour de Black vers la version 23.3 (#629) 2023-04-22 15:32:31 +02:00
Sli
98bfc308a7 Minimal working version
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
99c8d95443
django2.2: remove direct assignments to many-to-many fields 2019-10-08 22:46:37 +02:00
6cc234e8d3
django2.2: add default mandatory on_delete on OneToOneField 2019-10-08 22:46:02 +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
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
6964692556
clubs: basic bulk mark as old 2019-04-24 18:17:03 +02:00
80f1f9699c
clubs: move Membership form validation outside of model and fix and add tests 2019-04-24 17:12:20 +02:00
cb58b00b6e
All: Apply Black coding rules 2018-10-05 21:52:55 +02:00
Skia
9146251642 Prevent generation of useless migrations upon settings change 2018-05-08 18:51:29 +02:00
b7483513be
Fix for mailing lists 2017-12-22 12:06:23 +01:00
Skia
6ebdd53d98 club: make clubs viewable by old subscribers
Signed-off-by: Skia <skia@libskia.so>
2017-11-01 14:51:55 +01:00
8146186447
Fix some bugs in mailings with new club tools 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
790d723d08
Fix page creation method for clubs 2017-10-06 11:09:30 +02:00
e2078a8c15
Sync club pages with club tree 2017-10-06 11:09:30 +02:00
939146bddd
Sync pages with club unix_name 2017-10-06 11:09:29 +02:00
fe69cbcee1
Add page for clubs and inactive clubs 2017-10-06 11:09:29 +02:00
3089b484d3 Enhanced news 2017-10-02 14:29:36 +02:00
Skia
a2dc00f4e5 club: add club logo
Signed-off-by: Skia <skia@libskia.so>
2017-09-25 20:13:35 +02:00
f65f261cfd mailing: Fix error when deleting user from mailing when only email provided 2017-08-24 00:20:20 +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
fe187dae38 Only begining of the mail is now needed 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
c56094eaaf Some selected club members can now make people subscribe and fix major security hole in board_member verification 2017-07-26 20:31:29 +02:00
73b2c9d4c5 Format club 2017-06-13 09:48:24 +02:00
Skia
e689f7f1db Add index and query reduction in clubs 2017-05-30 19:33:09 +02:00
Skia
319bb0c2d1 Fix important rights problem in clubs 2017-05-10 19:16:18 +02:00
Skia
83deae5964 Apply GPLv3 to Sith, and add header to every concerned file 2017-04-24 17:51:12 +02:00
Skia
39b32d456c Some com templates improvments and reordering some models 2017-03-24 09:19:15 +01:00