Use enums in more models
This commit is contained in:
parent
aeefd5a3e9
commit
9948dd2356
4 changed files with 12 additions and 10 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="REPORT", unread=True
|
||||
user=admin, notification_type=notification_model.REPORT, unread=True
|
||||
)
|
||||
notification.related_repors.add(reports)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue