authentik.endpoints.migrations.0004_deviceaccessgroup_attributes

 1# Generated by Django 5.2.9 on 2025-12-08 23:54
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7
 8    dependencies = [
 9        ("authentik_endpoints", "0003_alter_endpointstage_options_endpointstage_mode"),
10    ]
11
12    operations = [
13        migrations.AddField(
14            model_name="deviceaccessgroup",
15            name="attributes",
16            field=models.JSONField(blank=True, default=dict),
17        ),
18    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_endpoints", "0003_alter_endpointstage_options_endpointstage_mode"),
11    ]
12
13    operations = [
14        migrations.AddField(
15            model_name="deviceaccessgroup",
16            name="attributes",
17            field=models.JSONField(blank=True, default=dict),
18        ),
19    ]

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_endpoints', '0003_alter_endpointstage_options_endpointstage_mode')]
operations = [<AddField model_name='deviceaccessgroup', name='attributes', field=<django.db.models.fields.json.JSONField>>]