1
0
Fork 0

Notification field is read, not unread

Oops
This commit is contained in:
Mouse Reeve 2022-07-04 21:32:35 -07:00
parent 801ba03aaf
commit 971bed9942
2 changed files with 4 additions and 4 deletions

View file

@ -69,7 +69,7 @@ def automod_task():
with transaction.atomic():
for admin in admins:
notification, _ = notification_model.objects.get_or_create(
user=admin, notification_type=notification_model.REPORT, unread=True
user=admin, notification_type=notification_model.REPORT, read=False
)
notification.related_repors.add(reports)