From b110cf5349254bf83e63341ced2a9235b1ce931f Mon Sep 17 00:00:00 2001 From: bidaya0 Date: Mon, 23 Oct 2023 15:27:13 +0800 Subject: [PATCH] fix: vul_log msg record --- dongtai_common/migrations/0036_auto_20230919_1233.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dongtai_common/migrations/0036_auto_20230919_1233.py b/dongtai_common/migrations/0036_auto_20230919_1233.py index 0c081898..41c73484 100644 --- a/dongtai_common/migrations/0036_auto_20230919_1233.py +++ b/dongtai_common/migrations/0036_auto_20230919_1233.py @@ -197,8 +197,8 @@ def update_admin_role(apps, schema_editor): {"id": 56, "label": "消息通知"}, ], } - IastRoleV2.object.filter(name="管理员", is_admin=True).update(permission=new_admin_permission) - IastRoleV2.object.filter(name="普通用户", is_admin=True).update(permission=new_user_permission) + IastRoleV2.objects.filter(name="管理员", is_admin=True).update(permission=new_admin_permission) + IastRoleV2.objects.filter(name="普通用户", is_admin=True).update(permission=new_user_permission) class Migration(migrations.Migration):