imperosol
22b510e25b
short-circuit ForumMessageView redirection on 403
...
Quand on accède à cette vue, on est immédiatement redirigé vers le topic correspondant (quitte à se faire 403 une fois arrivé là). Comme la redirection est une opération qui a un cout, on peut gagner du temps en mettant un PermissionDenied directement (d'autant plus que les bots aiment beaucoup rechercher les messages du forum, et qu'ils se font systématiquement 403)
2026-10-09 16:09:54 +02:00
imperosol
53f7bf08d3
remove remaining CanCreateMixin
2025-11-10 00:19:16 +01:00
imperosol
7c3186da79
apply ruff rule A005
2025-03-10 10:33:05 +01:00
imperosol
0c01ad1770
Move core auth mixins to their own file
2025-01-13 15:45:55 +01:00
klmp200
b6a480ff61
Remove ajax_select from forum
2024-10-20 22:29:07 +02:00
klmp200
f78b968075
Move markdown input and select widgets to a widget folder
2024-10-20 01:05:34 +02:00
thomas girod
6179c3e7d4
Better style for forum messages
2024-09-27 11:21:33 +02:00
thomas girod
62bb15317c
T2 ruff rule
2024-08-06 11:42:10 +02:00
thomas girod
d51dbf8a53
Merge pull request #724 from ae-utbm/ninja
...
Use django-ninja for the API
2024-07-24 00:48:08 +02:00
thomas girod
3046438cb1
replace drf by django-ninja
2024-07-23 19:57:33 +02:00
klmp200
2c8f18d7fc
Add honeypot on forum
2024-07-22 11:40:11 +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
klmp200
98bfc308a7
Minimal working version
...
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
klmp200
ebee8c34e1
forum: fix ForumTopicSubscribeView error 500 with anonymous user
2019-12-16 15:00:33 +01:00
klmp200
2616e8b24c
django2.2: relpace django.core.urlresolvers by django.urls
2019-10-08 22:46:01 +02:00
klmp200
321e5e3ff5
forum: enhance performances on toggle_favorite
2019-09-15 16:12:24 +02:00
Cyl
355a51d2ce
core: fix special caracter in user and forum search
2019-05-09 19:51:55 +02:00
Cyl
bf06aea680
core: fix whitespaces in user and forum search
2019-05-06 20:11:49 +02:00
Skia
835782fd7e
forum/views: reduce number of queries with some 'prefetch_related'
2018-12-13 20:36:21 +01:00
klmp200
068a80519c
forum: fix order by date
2018-12-13 20:33:34 +01:00
klmp200
6891174935
forum: implement order by date for search
2018-12-13 20:33:34 +01:00
klmp200
e421a2b4cd
forum: increase search speed by optimizing permission filter
2018-12-13 20:33:34 +01:00
klmp200
347caa3b6a
forum and core: fix error 500 when query is empty on search
2018-12-13 20:33:34 +01:00
klmp200
107c6c196f
forum: limit results and improve search engine speed
2018-12-13 20:33:34 +01:00
klmp200
884855c178
forum and core: remove CanViewSearchMixin and use specialized view instead
2018-12-13 20:33:34 +01:00
klmp200
076b10e325
forum and core: add a dedicated mixin to exclude unauthorized search results
2018-12-13 20:33:34 +01:00
klmp200
3fdb83c1c2
forum and core: add access rights on search query
2018-12-13 20:33:34 +01:00
klmp200
404b825de4
forum: make search fuzzy
2018-12-13 20:33:34 +01:00
klmp200
286ba91c75
Adapt forum search to xapian and improve query
2018-12-13 20:33:34 +01:00
Grégoire Duvauchelle
9b8a881914
Add haystack index, and a view for forum search (WIP)
2018-12-13 20:33:34 +01:00
klmp200
cb58b00b6e
All: Apply Black coding rules
2018-10-05 21:52:55 +02:00
klmp200
443616a762
Forum permission fix and form display
2018-04-26 15:20:45 +02:00
Skia
606f1af4d5
forum: add favorite topics
...
Signed-off-by: Skia <skia@libskia.so >
2018-02-22 22:28:28 +01:00
krophil
6a43c2cef6
Format forum
2017-06-13 10:04:13 +02:00
Skia
58beb551e8
Fix unread messages in topic
...
Signed-off-by: Skia <skia@libskia.so >
2017-06-10 21:05:36 +02:00
Skia
ce46a9d9da
Some small clean up and refactoring
...
Signed-off-by: Skia <skia@libskia.so >
2017-06-10 19:56:47 +02:00
Skia
2925cde8ab
Add a MarkdownInput widget, and make use of it
...
Signed-off-by: Skia <skia@libskia.so >
2017-06-10 19:40:47 +02:00
Skia
457fc36e16
Fix markdown rendering on some pages, and add a link to the syntax help
...
Signed-off-by: Skia <skia@libskia.so >
2017-06-10 16:54:19 +02:00
krophil
1ebfcdedec
fix topic creation
2017-06-02 10:55:50 +02:00
Skia
463e0b7055
Again some small forum improvements
...
Signed-off-by: Skia <skia@libskia.so >
2017-05-31 00:41:39 +02:00
Skia
06b67f1d27
Still reducing the number of queries on the Forum
...
Signed-off-by: Skia <skia@libskia.so >
2017-05-30 23:37:06 +02:00
Skia
97a39b0652
Make **a lot** of Forum improvements in reducing the number of queries per page
2017-05-30 19:33:09 +02:00
Skia
d7135e4d27
Make a lot of pimp in the Forum
2017-05-30 19:33:09 +02:00
Skia
83deae5964
Apply GPLv3 to Sith, and add header to every concerned file
2017-04-24 17:51:12 +02:00
Skia
3aa5070a38
Add preview button in the Forum
2017-04-12 19:26:27 +02:00
Skia
f400be3a79
Refactor topic to use paginator instead of custom paging
2017-03-15 18:34:22 +01:00
Skia
729a3608ba
Add some pagination on forum topics
2017-03-12 20:40:37 +01:00
Skia
73cbfd3e82
Add Forum ordering number
2017-03-12 18:06:01 +01:00
Skia
7d99f02a4d
forum: reply page, CSS, and first_unread fix
2017-02-25 14:38:10 +01:00