mirror of https://github.com/jumpserver/jumpserver
				
				
				
			
		
			
				
	
	
		
			22 lines
		
	
	
		
			620 B
		
	
	
	
		
			Python
		
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			620 B
		
	
	
	
		
			Python
		
	
	
# 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),
 | 
						|
    ]
 |