mirror of
https://github.com/ae-utbm/sith.git
synced 2025-09-13 03:25:49 +00:00
fix: news notifications
Résout trois problèmes : - la création des notifications faisait un N+1 queries - le décompte du nombre de nouvelles à modérer était mauvais - modérer une nouvelle ne modifiait pas les notifications des autres admins
This commit is contained in:
@@ -686,8 +686,10 @@ SITH_NOTIFICATIONS = [
|
||||
# The keys are the notification names as found in SITH_NOTIFICATIONS, and the
|
||||
# values are the callback function to update the notifs.
|
||||
# The callback must take the notif object as first and single argument.
|
||||
# If a notification is permanent but requires no post-action, set the
|
||||
# callback import string as None
|
||||
SITH_PERMANENT_NOTIFICATIONS = {
|
||||
"NEWS_MODERATION": "com.models.news_notification_callback",
|
||||
"NEWS_MODERATION": None,
|
||||
"SAS_MODERATION": "sas.models.sas_notification_callback",
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user