authentik.stages.identification.migrations.0015_identificationstage_captcha_stage

 1# Generated by Django 5.0.8 on 2024-08-29 11:31
 2
 3import django.db.models.deletion
 4from django.db import migrations, models
 5
 6
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_stages_captcha", "0003_captchastage_error_on_invalid_score_and_more"),
11        ("authentik_stages_identification", "0014_identificationstage_pretend"),
12    ]
13
14    operations = [
15        migrations.AddField(
16            model_name="identificationstage",
17            name="captcha_stage",
18            field=models.ForeignKey(
19                default=None,
20                help_text="When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage.",
21                null=True,
22                on_delete=django.db.models.deletion.SET_NULL,
23                to="authentik_stages_captcha.captchastage",
24            ),
25        ),
26    ]
class Migration(django.db.migrations.migration.Migration):
 8class Migration(migrations.Migration):
 9
10    dependencies = [
11        ("authentik_stages_captcha", "0003_captchastage_error_on_invalid_score_and_more"),
12        ("authentik_stages_identification", "0014_identificationstage_pretend"),
13    ]
14
15    operations = [
16        migrations.AddField(
17            model_name="identificationstage",
18            name="captcha_stage",
19            field=models.ForeignKey(
20                default=None,
21                help_text="When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage.",
22                null=True,
23                on_delete=django.db.models.deletion.SET_NULL,
24                to="authentik_stages_captcha.captchastage",
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_stages_captcha', '0003_captchastage_error_on_invalid_score_and_more'), ('authentik_stages_identification', '0014_identificationstage_pretend')]
operations = [<AddField model_name='identificationstage', name='captcha_stage', field=<django.db.models.fields.related.ForeignKey>>]