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.
jumpserver/apps/rbac/migrations/0014_auto_20231208_1548.py

19 lines
536 B

# Generated by Django 4.1.10 on 2023-12-08 07:48
from django.db import migrations
def migrate_update_offline_usersession_permission_name(apps, *args):
perm_model = apps.get_model('auth', 'Permission')
perm_model.objects.filter(codename='offline_usersession').update(name='Offline user session')
class Migration(migrations.Migration):
dependencies = [
('rbac', '0013_alter_menupermission_options'),
]
operations = [
migrations.RunPython(migrate_update_offline_usersession_permission_name)
]