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
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
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
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
25225fc451
com: fix error when editing poster while being admin
2019-10-09 17:43:23 +02:00
12b6f0d488
django2.2: adapt DateTimeField in forms with the new API
2019-10-08 22:46:02 +02:00
2616e8b24c
django2.2: relpace django.core.urlresolvers by django.urls
2019-10-08 22:46:01 +02:00
2da0560ec8
com: fix error 500 when editing poster with com admin
2019-10-02 15:32:33 +02:00
3fc8688941
com/core: remove links to index edition that caused error 500
2019-08-29 17:23:27 +02:00
Cyl
9e0c4e70d4
[COM] Make the news visible for non-authenticated user and birthday visible for subriber only
2019-08-28 20:40:31 +02:00
dc800b59f4
com: use MarkdownInput for alert_msg, info_msg and index_page editing
2018-12-20 15:13:59 +01:00
24dd258d0a
com: use MarkdownInput on news
2018-12-20 15:09:44 +01:00
d2021ecf7e
com: use MarkdownInput for weekmail
2018-12-20 15:06:20 +01:00
cb58b00b6e
All: Apply Black coding rules
2018-10-05 21:52:55 +02:00
Skia
be36b7f38a
com: fix birthdays query
2018-09-19 11:37:16 +02:00
afa9bd8735
Fix Poster form
2018-04-26 14:48:29 +02:00
cbd333eb47
Changed default display time for posters and permissions on it
2018-03-18 22:28:25 +01:00
43b4579a98
Fix datetime forms for posters
2017-12-22 12:53:43 +01:00
gnikwo
903f07ecbd
Added screen list on poster + Added unmoderated poster artefact + discussions fixes
2017-12-21 12:25:07 +01:00
72d2862e3e
Posters now working + notifications for com admin
2017-12-16 20:48:36 +01:00
cc99cecaa0
Fix tab mixin on clubs
2017-12-05 15:53:36 +01:00
gnikwo
91d3e9e4dc
Delete function + club tabs
2017-12-05 15:24:46 +01:00
gnikwo
5cd031f579
Ready for review
2017-11-28 15:12:25 +01:00
gnikwo
21b24f2891
Club views and discussions fixes
2017-11-28 15:12:04 +01:00
gnikwo
693c3ed27e
Moved club field + migrations
2017-11-28 15:09:21 +01:00
gnikwo
8d1c648032
Communication screen - without club tool
2017-11-28 15:09:05 +01:00
Skia
b87990e3db
com: add birthdays block
...
Signed-off-by: Skia <skia@libskia.so>
2017-09-26 13:45:40 +02:00
Skia
cda89d66cd
com: improve news page
...
Signed-off-by: Skia <skia@libskia.so>
2017-09-26 12:13:23 +02:00
56b5fa733b
Small fixes on news
2017-09-18 16:28:11 +02:00
Skia
4c1b231ec9
com: add NewsDeleteView
...
Signed-off-by: Skia <skia@libskia.so>
2017-09-06 12:47:21 +02:00
470680e760
Add moderation for mailing lists
2017-08-22 15:36:39 +02:00
9e5159152a
Little right fix
2017-08-22 15:36:39 +02:00
76efb91e40
Move mailing list admin to com
2017-08-22 15:36:39 +02:00
Skia
83b00450eb
com: improve news admin view
...
Signed-off-by: Skia <skia@libskia.so>
2017-08-16 15:37:35 +02:00
4f4ea5dde9
Format com
2017-06-13 09:48:24 +02:00
Skia
2f5bd7d2ef
Fix Weekmail article creation view's rights
2017-05-17 10:56:38 +02:00
Skia
0a84ef8438
Allow to unmoderate news
2017-05-13 18:32:13 +02:00
7cb9ea40ac
Anonymous users can't edit weekmail
2017-05-06 20:48:48 +02:00