authentik.brands.migrations.0012_brand_flow_lockdown

 1# Generated by Django 5.2.12 on 2026-03-14 02:58
 2
 3import django.db.models.deletion
 4from django.db import migrations, models
 5
 6
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_brands", "0011_alter_brand_branding_default_flow_background_and_more"),
11        ("authentik_flows", "0031_alter_flow_layout"),
12    ]
13
14    operations = [
15        migrations.AddField(
16            model_name="brand",
17            name="flow_lockdown",
18            field=models.ForeignKey(
19                null=True,
20                on_delete=django.db.models.deletion.SET_NULL,
21                related_name="brand_lockdown",
22                to="authentik_flows.flow",
23            ),
24        ),
25    ]
class Migration(django.db.migrations.migration.Migration):
 8class Migration(migrations.Migration):
 9
10    dependencies = [
11        ("authentik_brands", "0011_alter_brand_branding_default_flow_background_and_more"),
12        ("authentik_flows", "0031_alter_flow_layout"),
13    ]
14
15    operations = [
16        migrations.AddField(
17            model_name="brand",
18            name="flow_lockdown",
19            field=models.ForeignKey(
20                null=True,
21                on_delete=django.db.models.deletion.SET_NULL,
22                related_name="brand_lockdown",
23                to="authentik_flows.flow",
24            ),
25        ),
26    ]

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_brands', '0011_alter_brand_branding_default_flow_background_and_more'), ('authentik_flows', '0031_alter_flow_layout')]
operations = [<AddField model_name='brand', name='flow_lockdown', field=<django.db.models.fields.related.ForeignKey>>]