Notification field is read, not unread
Oops
This commit is contained in:
parent
801ba03aaf
commit
971bed9942
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue