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