authentik.sources.ldap.migrations.0007_ldapsource_lookup_groups_from_user
1# Generated by Django 5.0.13 on 2025-03-26 17:06 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 8 dependencies = [ 9 ( 10 "authentik_sources_ldap", 11 "0006_rename_ldappropertymapping_ldapsourcepropertymapping_and_more", 12 ), 13 ] 14 15 operations = [ 16 migrations.AddField( 17 model_name="ldapsource", 18 name="lookup_groups_from_user", 19 field=models.BooleanField( 20 default=False, 21 help_text="Lookup group membership based on a user attribute instead of a group attribute. This allows nested group resolution on systems like FreeIPA and Active Directory", 22 ), 23 ), 24 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ( 11 "authentik_sources_ldap", 12 "0006_rename_ldappropertymapping_ldapsourcepropertymapping_and_more", 13 ), 14 ] 15 16 operations = [ 17 migrations.AddField( 18 model_name="ldapsource", 19 name="lookup_groups_from_user", 20 field=models.BooleanField( 21 default=False, 22 help_text="Lookup group membership based on a user attribute instead of a group attribute. This allows nested group resolution on systems like FreeIPA and Active Directory", 23 ), 24 ), 25 ]
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.