authentik.flows.migrations.0022_flow_layout

 1# Generated by Django 4.0.4 on 2022-05-15 19:17
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7    dependencies = [
 8        ("authentik_flows", "0021_auto_20211227_2103"),
 9    ]
10
11    operations = [
12        migrations.AddField(
13            model_name="flow",
14            name="layout",
15            field=models.TextField(
16                choices=[
17                    ("stacked", "Stacked"),
18                    ("content_left", "Content Left"),
19                    ("content_right", "Content Right"),
20                    ("sidebar_left", "Sidebar Left"),
21                    ("sidebar_right", "Sidebar Right"),
22                ],
23                default="stacked",
24            ),
25        ),
26    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8    dependencies = [
 9        ("authentik_flows", "0021_auto_20211227_2103"),
10    ]
11
12    operations = [
13        migrations.AddField(
14            model_name="flow",
15            name="layout",
16            field=models.TextField(
17                choices=[
18                    ("stacked", "Stacked"),
19                    ("content_left", "Content Left"),
20                    ("content_right", "Content Right"),
21                    ("sidebar_left", "Sidebar Left"),
22                    ("sidebar_right", "Sidebar Right"),
23                ],
24                default="stacked",
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_flows', '0021_auto_20211227_2103')]
operations = [<AddField model_name='flow', name='layout', field=<django.db.models.fields.TextField>>]