Commit Graph

101 Commits

Author SHA1 Message Date
imperosol 3d7f57b8da feat: whitelist for user visibility 2026-03-23 23:03:53 +01:00
imperosol 80dbe7f742 exclude hidden users from ajax search 2025-11-11 14:31:20 +01:00
imperosol 04702335e2 rename User.is_subscriber_viewable => User.is_viewable 2025-11-11 14:31:20 +01:00
imperosol 53f7bf08d3 remove remaining CanCreateMixin 2025-11-10 00:19:16 +01:00
klmp200 917a2b50cc Fix naming, fix tooltip and cosmetic changes 2025-10-31 21:51:12 +01:00
imperosol 118a08372f simplify poster moderation 2025-10-31 17:16:52 +01:00
klmp200 b8429a510f posters: fix broken moderation view 2025-10-31 12:15:44 +01:00
klmp200 7eaf25a64f Remove QuikNotifMixin 2025-09-25 16:02:56 +02:00
imperosol 08b16d6e74 feat: make poster views available to club board members 2025-09-19 17:22:44 +02:00
Thomas Girod b0e24350e2 fix com admin pages 2025-04-06 14:17:12 +02:00
imperosol 7c3186da79 apply ruff rule A005 2025-03-10 10:33:05 +01:00
klmp200 a653f98fc1 Apply review comments 2025-02-25 18:28:16 +01:00
klmp200 a01ea13f5b Fix crash when no news is available 2025-02-25 18:09:11 +01:00
klmp200 4890fcf0e1 Rename news moderate to publish 2025-02-25 18:09:08 +01:00
imperosol 71b3588577 Add a "see more" button on news dates list 2025-02-25 08:56:45 +01:00
imperosol 1d177412c3 change upcoming news selection on main page 2025-02-25 08:55:35 +01:00
imperosol 92b2befd55 Improve news list display 2025-02-15 14:04:32 +01:00
klmp200 5db9819560 Address review comments 2025-01-21 00:28:35 +01:00
klmp200 dd2cd0a18d Add atom/rss news feed 2025-01-19 18:22:02 +01:00
imperosol 71b096f9ef Apply review comment 2025-01-14 17:17:31 +01:00
imperosol 551091f650 add PermissionOrAuthorRequiredMixin 2025-01-13 15:45:58 +01:00
imperosol 0c01ad1770 Move core auth mixins to their own file 2025-01-13 15:45:55 +01:00
imperosol cba915c34d Move core views mixins to their own file 2025-01-13 15:45:27 +01:00
imperosol c3fc8538cc rework news form 2025-01-10 22:08:24 +01:00
imperosol d3f21c8f16 remove news event type 2025-01-10 22:08:10 +01:00
imperosol 895d51586e put com forms in their own file 2025-01-10 22:08:10 +01:00
klmp200 63839dc22b Fix poster edition and display bug 2025-01-04 22:51:44 +01:00
imperosol fa66851889 fix n+1 queries on birthdays 2024-12-21 21:09:08 +01:00
imperosol 8c660e9856 Make core.User inherit from AbstractUser instead of AbstractBaseUser 2024-12-19 10:39:04 +01:00
imperosol 17e4c63737 refactor news model and creation form 2024-12-18 15:54:10 +01:00
klmp200 f78b968075 Move markdown input and select widgets to a widget folder 2024-10-20 01:05:34 +02:00
thomas girod d16a207a83 Add more Ruff rules (#891)
* ruff: apply rule F

* ruff: apply rule E

* ruff: apply rule SIM

* ruff: apply rule TCH

* ruff: apply rule ERA

* ruff: apply rule PLW

* ruff: apply rule FLY

* ruff: apply rule PERF

* ruff: apply rules FURB & RUF
2024-10-15 11:36:26 +02:00
thomas girod 0eaa20e09d fix localdate issues 2024-10-03 00:25:22 +02:00
thomas girod 04e7f65e8e Merge pull request #725 from ae-utbm/drop-jquery-calendar
Remove jquery datetimepicker
2024-07-25 01:20:41 +02:00
thomas girod 9295325d21 remove jquery datetime picker 2024-07-23 23:26:48 +02:00
thomas girod 8c69a94488 use google convention for docstrings 2024-07-21 00:57:04 +02:00
thomas girod cfc19434d0 ruff rules UP008 and UP009 2024-07-08 15:37:09 +02:00
thomas girod 3143d3d91a reorganize imports with ruff 2024-06-26 12:35:38 +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
klmp200 98bfc308a7 Minimal working version
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
Skia 39bb490257 com: fix weekmail for the case of non-existing email addresses
If an email address is set as destination for the Weekmail, the SMTP may
refuse it, and `smtplib` will throw a `SMTPRecipientsRefused` error,
containing the list of refused addresses. This commit provides an
interface for the weekmail sender to quickly unsubscribe the faulty
users, so that the next try sending the weekmail can be performed
successfully.
2021-10-03 18:16:51 +02:00
Cyl 61a40c47d2 [com]: add helper_text for resolution and format of poster 2021-09-29 16:09:05 +02:00
tleb 49a0ade315 core: create TzAwareDateTimeField to replace forms.DateTimeField 2021-09-29 15:24:06 +02:00
Skia a3158253a7 Black update 2021-09-26 13:58:39 +02:00
klmp200 6a153719f9 com: fix 500 error when utbm mail server refuse weekmail 2019-11-25 13:30:47 +01:00
tleb 60c9498a56 Fix 500 on news creation/edition 2019-10-17 10:25:29 +02:00
klmp200 660a3161f5 Merge branch 'new_django' into 'master'
upgrade to django 2.2

See merge request ae/Sith!243
2019-10-12 23:19:26 +02:00
klmp200 25225fc451 com: fix error when editing poster while being admin 2019-10-09 17:43:23 +02:00
klmp200 12b6f0d488 django2.2: adapt DateTimeField in forms with the new API 2019-10-08 22:46:02 +02:00
klmp200 2616e8b24c django2.2: relpace django.core.urlresolvers by django.urls 2019-10-08 22:46:01 +02:00