fix: Account migrate 0012 file

pull/14543/head
feng 2024-11-25 17:25:41 +08:00 committed by feng626
parent da7965a491
commit d962312db5
1 changed files with 4 additions and 3 deletions

View File

@ -1,9 +1,10 @@
# Generated by Django 4.1.13 on 2024-11-14 11:00 # Generated by Django 4.1.13 on 2024-11-14 11:00
from django.db import migrations, models
import django.db.models.deletion
import uuid import uuid
import django.db.models.deletion
from django.db import migrations, models
def init_account_check_engine(apps, schema_editor): def init_account_check_engine(apps, schema_editor):
data = [ data = [
@ -20,7 +21,7 @@ def init_account_check_engine(apps, schema_editor):
'comment': '基于账号密码的安全性进行检查分析, 检查密码强度、泄露等信息' 'comment': '基于账号密码的安全性进行检查分析, 检查密码强度、泄露等信息'
} }
] ]
model_cls = apps.get_model('accounts', 'AccountCheckEngine') model_cls = apps.get_model('accounts', 'CheckAccountEngine')
for item in data: for item in data:
model_cls.objects.create(**item) model_cls.objects.create(**item)