thomas girod
8c69a94488
use google convention for docstrings
2024-07-21 00:57:04 +02:00
thomas girod
e5a2236d72
remove pytz
2024-07-18 17:33:14 +02:00
6240eff160
Apply review suggestions
2024-07-11 13:23:24 +02:00
a8918ebe86
Fix forum topic creation
2024-07-11 13:23:24 +02:00
thomas girod
2ac578c3ad
ruff rule DJ
...
Co-authored-by: Bartuccio Antoine <klmp200@users.noreply.github.com>
2024-07-08 15:37:10 +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
thomas girod
b5a40cfda9
Mise à jour de Black vers la version 23.3 ( #629 )
2023-04-22 15:32:31 +02:00
98bfc308a7
Minimal working version
...
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
99c8d95443
django2.2: remove direct assignments to many-to-many fields
2019-10-08 22:46:37 +02:00
6cc234e8d3
django2.2: add default mandatory on_delete on OneToOneField
2019-10-08 22:46:02 +02:00
4dadb1dbc0
django2.2: add default mandatory on_delete on all ForeignKey
2019-10-08 22:46:01 +02:00
2616e8b24c
django2.2: relpace django.core.urlresolvers by django.urls
2019-10-08 22:46:01 +02:00
884855c178
forum and core: remove CanViewSearchMixin and use specialized view instead
2018-12-13 20:33:34 +01:00
3fdb83c1c2
forum and core: add access rights on search query
2018-12-13 20:33:34 +01:00
cb58b00b6e
All: Apply Black coding rules
2018-10-05 21:52:55 +02:00
Skia
9146251642
Prevent generation of useless migrations upon settings change
2018-05-08 18:51:29 +02:00
83f38e617b
Forum Form optimisation
2018-04-26 19:38:39 +02:00
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
6a43c2cef6
Format forum
2017-06-13 10:04:13 +02:00
Skia
22330e6d9f
forum: add on_delete=models.SET_NULL on _last_message fields
...
Signed-off-by: Skia <skia@libskia.so>
2017-05-31 19:50:41 +02:00
Skia
32ac6640ab
Small fix with forum topic titles
...
Signed-off-by: Skia <skia@libskia.so>
2017-05-30 23:37:06 +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
23fe797a9e
Make less DB queries (particularly in the Forum)
2017-05-14 04:38:33 +02:00
Skia
83deae5964
Apply GPLv3 to Sith, and add header to every concerned file
2017-04-24 17:51:12 +02:00
Skia
24c02f4638
Fix last message when the real last is deleted
2017-04-10 16:18:13 +02: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
777fdd7bd5
Again, lot of forum improvements
2017-02-24 17:22:13 +01:00
Skia
fe07ee0963
Still lot of forum improvements, both rights and cosmetic
2017-02-24 15:55:50 +01:00
Skia
c66b9b0512
Lot of small improvement in the forum
2017-02-24 01:50:09 +01:00
Skia
3b16704227
Add basic moderation to forum
2017-02-24 01:50:05 +01:00
Skia
138711c70c
Some tiny fixes in the forum
2017-02-24 01:50:00 +01:00
Skia
254126fd79
Add last unread function
2017-02-06 20:20:39 +01:00
Skia
4cc57c183e
Add some better right management to forum
2017-01-28 20:58:54 +01:00
Skia
653d9d4707
Some other great forum improvements
2017-01-21 22:47:30 +01:00
Skia
ff77df3646
Add basic right management to forum. Need to test it!
2017-01-21 04:51:37 +01:00
Skia
4dd6f01e60
Add Ariadne's thread
2017-01-21 04:19:15 +01:00
Skia
ea52462217
Add Forum
2017-01-21 03:42:06 +01:00