authentik.core.migrations.0043_alter_group_options

 1# Generated by Django 5.0.11 on 2025-01-30 23:55
 2
 3from django.db import migrations
 4
 5
 6class Migration(migrations.Migration):
 7
 8    dependencies = [
 9        ("authentik_core", "0042_authenticatedsession_authentik_c_expires_08251d_idx_and_more"),
10    ]
11
12    operations = [
13        migrations.AlterModelOptions(
14            name="group",
15            options={
16                "permissions": [
17                    ("add_user_to_group", "Add user to group"),
18                    ("remove_user_from_group", "Remove user from group"),
19                    ("enable_group_superuser", "Enable superuser status"),
20                    ("disable_group_superuser", "Disable superuser status"),
21                ],
22                "verbose_name": "Group",
23                "verbose_name_plural": "Groups",
24            },
25        ),
26    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_core", "0042_authenticatedsession_authentik_c_expires_08251d_idx_and_more"),
11    ]
12
13    operations = [
14        migrations.AlterModelOptions(
15            name="group",
16            options={
17                "permissions": [
18                    ("add_user_to_group", "Add user to group"),
19                    ("remove_user_from_group", "Remove user from group"),
20                    ("enable_group_superuser", "Enable superuser status"),
21                    ("disable_group_superuser", "Disable superuser status"),
22                ],
23                "verbose_name": "Group",
24                "verbose_name_plural": "Groups",
25            },
26        ),
27    ]

The base class for all migrations.

Migration files will import this from django.db.migrations.Migration and subclass it as a class called Migration. It will have one or more of the following attributes:

  • operations: A list of Operation instances, probably from django.db.migrations.operations
  • dependencies: A list of tuples of (app_path, migration_name)
  • run_before: A list of tuples of (app_path, migration_name)
  • replaces: A list of migration_names

Note that all migrations come out of migrations and into the Loader or Graph as instances, having been initialized with their app label and name.

dependencies = [('authentik_core', '0042_authenticatedsession_authentik_c_expires_08251d_idx_and_more')]
operations = [<AlterModelOptions name='group', options={'permissions': [('add_user_to_group', 'Add user to group'), ('remove_user_from_group', 'Remove user from group'), ('enable_group_superuser', 'Enable superuser status'), ('disable_group_superuser', 'Disable superuser status')], 'verbose_name': 'Group', 'verbose_name_plural': 'Groups'}>]