authentik.stages.identification.migrations.0014_identificationstage_pretend

 1# Generated by Django 4.2.7 on 2023-11-17 16:32
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7    dependencies = [
 8        (
 9            "authentik_stages_identification",
10            "0002_auto_20200530_2204_squashed_0013_identificationstage_passwordless_flow",
11        ),
12    ]
13
14    operations = [
15        migrations.AddField(
16            model_name="identificationstage",
17            name="pretend_user_exists",
18            field=models.BooleanField(
19                default=True,
20                help_text="When enabled, the stage will succeed and continue even when incorrect user info is entered.",
21            ),
22        ),
23    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8    dependencies = [
 9        (
10            "authentik_stages_identification",
11            "0002_auto_20200530_2204_squashed_0013_identificationstage_passwordless_flow",
12        ),
13    ]
14
15    operations = [
16        migrations.AddField(
17            model_name="identificationstage",
18            name="pretend_user_exists",
19            field=models.BooleanField(
20                default=True,
21                help_text="When enabled, the stage will succeed and continue even when incorrect user info is entered.",
22            ),
23        ),
24    ]

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_stages_identification', '0002_auto_20200530_2204_squashed_0013_identificationstage_passwordless_flow')]
operations = [<AddField model_name='identificationstage', name='pretend_user_exists', field=<django.db.models.fields.BooleanField>>]