From 40bb2e54bd22aa425586a3f468e04bb57be136c1 Mon Sep 17 00:00:00 2001 From: moanos Date: Wed, 20 Nov 2024 23:01:19 +0100 Subject: [PATCH] fix: Readjust trust level --- src/fellchensammlung/mail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fellchensammlung/mail.py b/src/fellchensammlung/mail.py index 871142d..af550f3 100644 --- a/src/fellchensammlung/mail.py +++ b/src/fellchensammlung/mail.py @@ -4,7 +4,7 @@ from django.dispatch import receiver from django.utils.translation import gettext_lazy as _ from django.conf import settings from django.core import mail -from fellchensammlung.models import User, CommentNotification, BaseNotification +from fellchensammlung.models import User, CommentNotification, BaseNotification, TrustLevel from notfellchen.settings import host NEWLINE = "\r\n" @@ -12,7 +12,7 @@ NEWLINE = "\r\n" def mail_admins_new_report(report): subject = _("Neue Meldung") - for moderator in User.objects.filter(trust_level__gt=User.TRUST_LEVEL[User.MODERATOR]): + for moderator in User.objects.filter(trust_level__gt=TrustLevel.MODERATOR): greeting = _("Moin,") + "{NEWLINE}" new_report_text = _("es wurde ein Regelverstoß gemeldet.") + "{NEWLINE}" if len(report.reported_broken_rules.all()) > 0: