Commit Graph
100 Commits
Author SHA1 Message Date
imperosol 650227b6e2 typescriptify album-index.js 2025-03-12 17:35:22 +01:00
imperosol 7c3186da79 apply ruff rule A005 2025-03-10 10:33:05 +01:00
imperosol bba5339407 apply ruff rule DJ012 2025-03-09 15:05:10 +01:00
imperosol d10393ea37 update dependencies 2025-03-09 15:04:53 +01:00
imperosolandklmp200 87f790a044 Don't minify statics in debug mode 2025-03-04 12:00:00 +01:00
imperosol 6af03240a1 fix Selling.__str__ 2025-02-25 12:59:49 +01:00
imperosol 01c92feb40 fix warning message display on subsequently loaded news 2025-02-25 11:53:02 +01:00
imperosol 94d2c5660a move hybrid translation to full front translation 2025-02-25 11:10:05 +01:00
imperosol 71b3588577 Add a "see more" button on news dates list 2025-02-25 08:56:45 +01:00
imperosol 2def57d82c Close alerts related to a moderated event 2025-02-25 08:55:35 +01:00
imperosol 0e88260c31 fix news dates timestamp in populate.py 2025-02-25 08:55:35 +01:00
imperosol 86c2ea7fd9 API route to fetch news dates 2025-02-25 08:55:35 +01:00
imperosol fc3b82c35c Make upcoming nws scrollable on y-overflow 2025-02-25 08:55:35 +01:00
imperosol 1d177412c3 change upcoming news selection on main page 2025-02-25 08:55:35 +01:00
imperosol 9c0d89de83 Give the student role when creating a new user subscription 2025-02-24 07:13:19 +01:00
imperosol 809febc353 add club and counter filters on product list page 2025-02-24 06:34:38 +01:00
imperosol 9945993f0b simplify .env.example
La plupart des variables du `.env.example` n'ont pas besoin d'être modifiées régulièrement et ont déjà des valeurs par défaut dans le `settings.py` qui sont adaptées à un environnement local.
En gardant uniquement les variables qui seront régulièrement modifiées, on rend le fichier plus compréhensible et plus simple à maintenir.
2025-02-17 11:33:15 +01:00
imperosol 59e90ec754 add CSRF_TRUSTED_ORIGINS to settings 2025-02-16 12:47:46 +01:00
imperosol 41bff53853 use .env for project configuration 2025-02-16 12:47:38 +01:00
imperosol b43b531c3b Add a disclaimer when moderating weekly news 2025-02-15 14:06:01 +01:00
imperosol bf388e68f0 remove Alpine import in moderation-alert-index.ts 2025-02-15 14:04:57 +01:00
imperosol 5252d450a9 remove alpine instructions for moderated news 2025-02-15 14:04:57 +01:00
imperosol 8f17c3d830 Set the moderator when moderating news 2025-02-15 14:04:57 +01:00
imperosol 6627ea417c News moderation buttons directly on the home page 2025-02-15 14:04:43 +01:00
imperosol 92b2befd55 Improve news list display 2025-02-15 14:04:32 +01:00
imperosol 43207455b8 API to moderate and delete news 2025-02-15 14:04:32 +01:00
imperosol 5fa431e29b Visually differentiate closed UVs from the others 2025-02-15 13:51:51 +01:00
imperosol 78f3caa455 management command to update the whole uv guide 2025-02-15 13:51:39 +01:00
imperosol 6d519e3a07 Custom client for UTBM UV API calls 2025-02-15 13:51:39 +01:00
imperosol 85c8b7d11c Use requests for external requests
L'API de requests est beaucoup plus claire que celle d'urllib et urllib3.
2025-02-15 13:51:39 +01:00
imperosol ee1bcf2011 add forgotten input field label 2025-02-15 12:05:54 +01:00
imperosol 571b3a4e02 fix perms in user_tools.jinja 2025-02-15 12:05:54 +01:00
imperosol 6bf02cecd9 Allow some customisation in core/edit.jinja 2025-02-15 12:05:54 +01:00
imperosol 05d4a09f8c Add a page to manage the groups that can create permissions 2025-02-15 12:05:54 +01:00
imperosol 2123e83010 fix user_tools.jinja indentation 2025-02-13 13:36:46 +01:00
imperosol 294b59b4d6 use django auth for subscription creation page 2025-02-13 13:36:46 +01:00
imperosol 73ce681307 fix upload artifact step of CI 2025-02-13 13:30:34 +01:00
imperosol 36076aefcc fix user groups update view
Le formulaire remplaçait la totalité des groupes de l'utilisateur, c'est-à-dire également les groupes pas affichés dans le formulaire. Ça fait que la soumission du formulaire retirait l'utilisateur de tous ses groupes de groupes et des autres groupes non-gérables manuellement (comme Publique et Anciens Cotisants).

Jusqu'ici, les groupes non-manuels étaient gérés bizarrement, en regardant dynamiquement à chaque fois si l'utilisateur est dans le groupe, donc le bug ne se voyait pas. Maintenant que tous les groupes sont gérés presque de la même manière, ça se voit.
2025-02-07 13:28:47 +01:00
imperosol 428fe68cdb fix CustomerQuerySet.update_amount 2025-01-23 14:55:10 +01:00
imperosol 14ed43aaa5 fix office counter click access 2025-01-23 13:32:13 +01:00
imperosol 20a535429c pedagogy api permissions 2025-01-17 17:31:22 +01:00
imperosol 5ff7bb3259 Add has_perm api permission 2025-01-17 17:31:08 +01:00
imperosol 0d95c3b9c9 Improve pedagogy permissions 2025-01-17 09:42:16 +01:00
imperosol 71b096f9ef Apply review comment 2025-01-14 17:17:31 +01:00
imperosol 9272f53bea fix doc display 2025-01-14 17:14:59 +01:00
imperosol 9b5f08e13c Improve permission documentation 2025-01-13 18:20:29 +01:00
imperosol d0b1a49300 deprecate CanCreateMixin
Les motifs de cette déprécation sont indiqués dans la documentation.
Le mixin a été remplacé par `PermissionRequiredMixin` dans les endroits où ce remplacement était aisé.
2025-01-13 18:20:29 +01:00
imperosol e500cf92ee Remove SubscriberMixin 2025-01-13 15:57:01 +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 7ac41ac5cb remove UserIsRootMixin 2025-01-13 15:45:23 +01:00
imperosol c6bb509fc3 remove call to deprecated imghdr module 2025-01-12 15:00:17 +01:00
imperosol 9f35f5356b fix NewsQuerySet.viewable_by 2025-01-10 22:08:28 +01:00
imperosol 8d73ec797b remove unwanted translation
Django ne traduit pas ses permissions. Si on traduit les nôtres, ça devient inconsistant
2025-01-10 22:08:28 +01:00
imperosol c3fc8538cc rework news form 2025-01-10 22:08:24 +01:00
imperosol 600657b1a8 get_end_of_semester util function 2025-01-10 22:08:10 +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
imperosol a8810816f0 Give the public group to newly created users 2025-01-10 02:23:07 +01:00
imperosol b7bf3fd375 Give the old_subscribers group when subscribing 2025-01-10 02:12:17 +01:00
imperosol 8b8a295e16 fix ban page access 2025-01-10 01:29:24 +01:00
imperosol e7215be00e translations 2025-01-05 15:49:30 +01:00
imperosol 4f35cc00bc Add UserBan management views 2025-01-05 15:49:08 +01:00
imperosol af47587116 Split groups and ban groups 2025-01-05 15:49:08 +01:00
imperosol 348ab19ac6 small form fixes
le `display:block` avait disparu des helptext, ce qui rendait leur affichage bizarre. Et il manquait quelques détails sur le `ProductForm`
2025-01-05 15:40:41 +01:00
imperosol 785ac9bdab pin poetry version 2025-01-05 14:48:40 +01:00
imperosol f0be4b270b remove line numbers from locale files 2025-01-04 22:03:37 +01:00
imperosol 849fac490d fix get_or_create in club group migration 2025-01-04 18:49:00 +01:00
imperosol 6eb860579a split migrations 2025-01-04 18:05:02 +01:00
imperosol bb210f8d47 change club group names when the club name changes 2025-01-04 16:43:38 +01:00
imperosol efca10e252 remove Club.view_groups, Club.edit_groups and Club.owner_group 2025-01-03 17:30:24 +01:00
imperosol b8f851b009 translations 2025-01-03 01:18:28 +01:00
imperosol 1e29ae4171 fixes on club group attribution 2025-01-03 01:18:28 +01:00
imperosol 0ae1e850f4 improve admin 2025-01-03 01:18:28 +01:00
imperosol d380668c0f Move users to the club groups in the migration 2025-01-03 01:18:28 +01:00
imperosol 9a72c5eb72 fix galaxy tests 2025-01-03 01:18:28 +01:00
imperosol 407cfbe02b update docs 2025-01-03 01:18:28 +01:00
imperosol 6400b2c2c2 replace MetaGroups by proper group management 2025-01-03 01:18:28 +01:00
imperosol 0d3fd954a3 make ajax select appearance consistant with other inputs 2024-12-29 18:16:52 +01:00
imperosol d200c1e381 fix 500 error when accessing history of non-existing page 2024-12-28 13:25:42 +01:00
imperosol 761e37ade6 fix product fetch 2024-12-26 17:26:06 +01:00
imperosol 72c2981d66 rework form style 2024-12-23 15:11:15 +01:00
imperosol da400155eb fix SithModelBackend._get_group_permissions 2024-12-22 15:01:58 +01:00
imperosol fa66851889 fix n+1 queries on birthdays 2024-12-21 21:09:08 +01:00
imperosol ab81f11199 Manage subscribers group permissions 2024-12-21 18:52:16 +01:00
imperosol bea7741d35 populate group permissions 2024-12-21 18:48:30 +01:00
imperosol 81e163812e custom auth backend 2024-12-21 17:34:20 +01:00
imperosol accf1befce Make products filterable by product type 2024-12-21 02:15:51 +01:00
imperosol 6953eaa9d0 fix sanitization of the csv content 2024-12-21 02:14:38 +01:00
imperosol 180bae59c8 Add translations 2024-12-21 02:14:38 +01:00
imperosol 9cafc163e8 fix frontend archived products filter 2024-12-21 02:14:38 +01:00
imperosol 8f8eef4107 display products as cards 2024-12-21 02:14:38 +01:00
imperosol 7af745087e create a card css component 2024-12-21 02:14:38 +01:00
imperosol aab093200b slightly improve style 2024-12-21 02:14:38 +01:00
imperosol 1a9556f811 add a button to download products as csv 2024-12-21 02:14:38 +01:00
imperosol 39b36aa509 ajaxify the product admin page 2024-12-21 02:14:38 +01:00
imperosol 3fc260a12c add csv converter 2024-12-21 02:14:38 +01:00
imperosol 1696a2f579 Add NestedKeyOf Type 2024-12-21 02:14:38 +01:00
imperosol 9f3a10ca71 fix user groups form 2024-12-20 11:00:57 +01:00