Commit Graph
100 Commits
Author SHA1 Message Date
imperosol 7e9071a533 optimize User.is_subscribed and User.was_subscribed 2024-12-19 10:39:07 +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
imperosol 5da27bb266 rename producttype to product_type 2024-12-18 14:48:59 +01:00
imperosol be6a077c8e fix access to the subscription page 2024-12-18 14:13:39 +01:00
imperosol 8d643fc6b4 Apply review comments 2024-12-17 17:23:13 +01:00
imperosol 47876e3971 Make product types dynamically orderable. 2024-12-17 13:35:29 +01:00
imperosol c79c251ba7 Add ProductTypeController 2024-12-17 13:35:29 +01:00
imperosol 483670e798 Make ProductType an OrderedModel 2024-12-17 13:35:29 +01:00
imperosol 6c8a6008d5 api route to search products with detailed infos. 2024-12-17 12:38:59 +01:00
imperosol e680124d7b fix makemessages command in docs 2024-12-17 12:38:59 +01:00
imperosol b06a06f50c feat: add restore on backspace plugin for tom select 2024-12-17 12:38:59 +01:00
imperosolandklmp200 466fe58763 feat: make student card unique per user 2024-12-15 16:49:24 +01:00
imperosolandklmp200 3b7e338808 fix 500 when accessing preferences
Quand on tente d'accéder aux préférences d'un utilisateur relié à un trombi, sans être soi-même dans un trombi, on a une erreur.
2024-12-15 16:49:24 +01:00
imperosol c51e5eb6cb remove parent_product column in the Product table 2024-12-09 12:59:33 +01:00
imperosol f0bc502ec9 fix translation in subscription creation success fragment 2024-12-09 12:31:58 +01:00
imperosol e2a34c75ea deps: update dependencies 2024-12-08 11:54:58 +01:00
imperosol 9acb421b2e deps: update ruff 2024-12-08 11:17:27 +01:00
imperosol 10dde3f002 fix imports 2024-12-07 00:18:17 +01:00
imperosol c2d6af12ab Merge branches 'split-home' and 'split-studentcard' into split-counter 2024-12-07 00:13:50 +01:00
imperosol 6e48f88c06 extract counter auth views 2024-12-07 00:12:10 +01:00
imperosol 7a91a71565 extract counter auth views 2024-12-07 00:11:18 +01:00
imperosol c4764110d8 extract counter home views 2024-12-07 00:10:46 +01:00
imperosol ff68e65250 extract counter home views 2024-12-07 00:07:37 +01:00
imperosol c9d83e5916 extract student card views 2024-12-07 00:06:33 +01:00
imperosol 5dc99dbfcb extract student card views 2024-12-07 00:05:45 +01:00
imperosol 84d7e40e66 feat: client-side cache for ajax-select inputs 2024-12-06 18:38:30 +01:00
imperosol 0b509f2200 fix N+1 queries on user search 2024-12-06 18:38:30 +01:00
imperosol 007e17fd8b Fix the account dump command.
- a missing `fail_silently` flag made the whole command fail if an invalid recipient is used (like closed utbm mail address)
- Not specifying the seller make the account detail pages crash.
2024-12-05 12:50:40 +01:00
imperosol 9667c79162 remove htmx-ext-response-targets 2024-12-03 19:41:10 +01:00
imperosol 1c79c25262 better tab style 2024-12-03 19:41:09 +01:00
imperosol 04b4b34bfe add back user profiles on subscription form 2024-12-03 19:41:09 +01:00
imperosol fc0e689d4e add initial values to forms 2024-12-03 19:41:09 +01:00
imperosol 83bb4b3b12 add translation 2024-12-03 19:41:09 +01:00
imperosol 8dcfc604a0 write tests 2024-12-03 19:41:09 +01:00
imperosol d2d639e5f6 Split SubscriptionForm into SubscriptionNewUserForm and SubscriptionExistingUserForm 2024-12-03 19:41:09 +01:00
imperosol 10f42b1522 fix imports 2024-11-27 19:03:34 +01:00
imperosol 76e9f3b1dc Merge branches 'split-cash', 'split-click', 'split-main', 'split-admin', 'split-mixins', 'split-eticket' and 'split-invoices' into split-clean 2024-11-27 18:49:40 +01:00
imperosol d0ff9bc16c extract mixins views 2024-11-27 18:48:06 +01:00
imperosol 5e4ebd16f9 extract mixins views 2024-11-27 18:47:55 +01:00
imperosol d2b19424ff extract eticket views 2024-11-27 18:47:18 +01:00
imperosol 08286254cd extract eticket views 2024-11-27 18:47:03 +01:00
imperosol 4805c39b45 extract cash views 2024-11-27 18:46:24 +01:00
imperosol f845bbf20a extract cash views 2024-11-27 18:45:27 +01:00
imperosol 71c7158124 extract invoice views 2024-11-27 18:43:26 +01:00
imperosol c4643ee52c extract invoice views 2024-11-27 18:42:50 +01:00
imperosol b46b0882f3 extract admin views 2024-11-27 18:42:26 +01:00
imperosol 1c4efc9431 extract admin views 2024-11-27 18:41:47 +01:00
imperosol 4133e0ccdd extract click views 2024-11-27 18:41:12 +01:00
imperosol de415e7e75 split click views 2024-11-27 18:40:38 +01:00
imperosol 9d17524f45 extract main views 2024-11-27 18:00:48 +01:00
imperosol 68ad9650af extract main views 2024-11-27 17:56:44 +01:00
imperosol 8d4d8a3abc create views package 2024-11-27 17:07:08 +01:00
imperosol 9617e29ed5 delete stock application 2024-11-26 17:35:10 +01:00
imperosol 75406f7b58 Tabs jinja component 2024-11-26 16:17:44 +01:00
imperosol 70f5ae4f9c Move subscription forms to subscription/forms.py 2024-11-26 16:17:44 +01:00
imperosol 6853ec0b69 make random password generation safe 2024-11-19 13:21:08 +01:00
imperosol 3b39049c20 Make User.generate_username less stupid 2024-11-19 13:07:59 +01:00
imperosol ee9f36d883 implement the dump_accounts command 2024-11-19 00:48:35 +01:00
imperosol e712f9fdb8 improve counter dump admin 2024-11-19 00:43:17 +01:00
imperosol c7adde62eb reset poetry cache in github CI 2024-11-13 23:50:43 +01:00
imperosol 34559dda08 migrate eboutic to typescript 2024-11-13 23:26:05 +01:00
imperosolandBartuccio Antoine c7a8a1a91c refactor CI 2024-11-11 13:28:44 +01:00
imperosolandBartuccio Antoine a97dba18c2 Reduce width of non-multiple ajax selects 2024-11-11 00:26:16 +01:00
imperosolandBartuccio Antoine 26770de40e Make selected option more visible 2024-11-11 00:26:16 +01:00
imperosolandBartuccio Antoine 583d4ddfb8 Use less requests in GetUserForm.clean 2024-11-11 00:26:16 +01:00
imperosolandBartuccio Antoine 486047b929 remove the honeypot from the login page
Des utilisateurs humains se font régulièrement "éclairer" par le honeypot. Les mesures anti-bot ne devraient pas bloquer des humains.
2024-11-11 00:22:07 +01:00
imperosol b65ec6463b fix picture display in profile page 2024-11-10 16:18:56 +01:00
imperosol c2efc969d0 refactor populate.py 2024-11-10 02:59:43 +01:00
imperosol b091fee035 custom queryset method to bulk update customer balance 2024-11-10 02:59:43 +01:00
imperosol 662b4b5c53 precise that dumped users can still subscribe 2024-10-20 12:45:37 +02:00
imperosol 9675b6372c add flags to the dump warning mail command 2024-10-20 12:32:28 +02:00
imperosol 03afd49115 make the mail text only 2024-10-20 12:32:28 +02:00
imperosol db6a871854 optimize product pages again 2024-10-20 00:27:25 +02:00
imperosol 5d16ba135a fix: xss on select2 results 2024-10-17 08:15:34 +02:00
imperosol 19cd51043a feat: display moderation requests to moderators 2024-10-14 00:47:07 +02:00
imperosol 5348a451e9 feat: picture moderation requests 2024-10-14 00:45:52 +02:00
imperosol 83ae21140d move SAS forms to their own file 2024-10-14 00:45:52 +02:00
imperosol 15ae24f0bd optimize: product list views 2024-10-13 12:32:50 +02:00
imperosol e4845b580b fix: invoices month grouping 2024-10-13 11:47:22 +02:00
imperosol 564d95f701 fix: InvoiceQuerySet.annotate_total() (but for real this time) 2024-10-13 10:37:48 +02:00
imperosol 7312580a8d fix: InvoiceQuerySet.annotate_total() 2024-10-12 15:52:40 +02:00
imperosol 29b32f6cbf Tell the customer balance in the warning mail 2024-10-11 09:59:03 +02:00
imperosol 465e0f31d9 write command test 2024-10-11 09:57:46 +02:00
imperosol 5a8052ae47 send mail to inactive users 2024-10-11 09:57:41 +02:00
imperosol 6a64e05247 select inactive users 2024-10-11 09:45:54 +02:00
imperosol ca25a12be0 Increase the barmen timeout limit
La limite actuelle est trop faible. En soirée, on s'en fout. Mais en journée, c'est terriblement chiant. Certains barmens passent leur temps à rafraichir la la page, certains mettent un rechargement auto à intervalles réguliers (ce qui tue le concept du timeout), et d'autres encore ont juste arrêté d'y prêter attention (mais le comptoir apparait alors comme fermé, et des étudiants qui auraient pu venir au Foyer ne viennent finalement pas)
2024-10-10 19:38:49 +02:00
imperosol c0a6f5eb30 Optimize barmen timeout and counter state fetch
Le timeout se fait en une seule requête et la récupération de l'état des comptoirs en une seule requête aussi. Grâce à ça, on peut en grande partie retirer le cache pour l'affichage de l'état des comptoirs, ce qui a des implications excellentes en termes d'UX (comme le fait que la redirection vers la page de comptoir ou d'activité aura plus une apparence de truc aléatoire)
2024-10-10 19:38:49 +02:00
imperosol 4bc4d266c2 Remove the question mark from the counter state
En raison de la manière dont le timeout marche et de l'activité des comptoirs, la notion de "comptoir inactif" n'est pas intuitive. Un comptoir est ouvert ou fermé. Point.
2024-10-10 19:37:00 +02:00
thomas girod 12bb7e9294 remove stock application 2024-10-09 14:50:41 +02:00
imperosol 1dca0ea003 update ruff 2024-10-09 14:28:13 +02:00
imperosol b340a6568f update dependencies 2024-10-09 14:26:39 +02:00
imperosol b0884c6b04 return 404 when accessing not existing account 2024-10-08 15:30:35 +02:00
imperosol 20bea62542 use spaces for indentation 2024-10-08 13:54:44 +02:00
imperosol 58d3a7ee2c Optimize user account pages 2024-10-04 13:41:39 +02:00
thomas girodandBartuccio Antoine 543a48b4ab reminder to use wsl when cloning the project 2024-10-03 18:32:27 +02:00
thomas girodandBartuccio Antoine c4e42212aa Better install doc 2024-10-03 18:32:27 +02:00
thomas girodandBartuccio Antoine 0eaa20e09d fix localdate issues 2024-10-03 00:25:22 +02:00
thomas girod d0f17bd41a faster image resizing and smaller results 2024-10-02 23:16:47 +02:00
thomas girod c10e1e8cbf fix profile pictures layout in Select2 results 2024-09-29 23:31:33 +02:00