1
0
Fork 0

Use enums in more models

This commit is contained in:
Mouse Reeve 2022-07-04 20:26:38 -07:00
parent aeefd5a3e9
commit 9948dd2356
4 changed files with 12 additions and 10 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="REPORT", unread=True
user=admin, notification_type=notification_model.REPORT, unread=True
)
notification.related_repors.add(reports)