feat: scroll to news moderation section when clicking notification

closes #1202
This commit is contained in:
imperosol committed 2025-11-07 15:39:58 +01:00
1 parent 285bd71371
commit e26851beb3
3 files changed
+3 -6

No files matched your search

+1 -1
View File
@@ -144,7 +144,7 @@ class News(models.Model):
),
groups__id=settings.SITH_GROUP_COM_ADMIN_ID,
)
notif_url = reverse("com:news_admin_list")
notif_url = reverse("com:news_admin_list", fragment="moderation")
new_notifs = [
Notification(user=user, url=notif_url, type="NEWS_MODERATION")
for user in admins_without_notif