mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
620 B
22 lines
620 B
2 years ago
|
# Generated by Django 3.2.14 on 2022-12-02 02:48
|
||
|
|
||
|
from django.db import migrations
|
||
|
|
||
|
|
||
|
def migrate_login_type(apps, schema_editor):
|
||
|
login_asset_model = apps.get_model('acls', 'LoginAssetACL')
|
||
|
login_asset_model.objects.filter(action='login_confirm').update(action='review')
|
||
|
|
||
|
login_system_model = apps.get_model('acls', 'LoginACL')
|
||
|
login_system_model.objects.filter(action='confirm').update(action='review')
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
dependencies = [
|
||
|
('acls', '0006_commandfilteracl_commandgroup'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.RunPython(migrate_login_type),
|
||
|
]
|