authentik.core.migrations.0053_alter_application_slug_alter_source_slug
1# Generated by Django 5.2.8 on 2025-11-25 16:36 2 3import django.core.validators 4import re 5from django.db import migrations, models 6 7 8class Migration(migrations.Migration): 9 10 dependencies = [ 11 ("authentik_core", "0052_source_promoted"), 12 ] 13 14 operations = [ 15 migrations.AlterField( 16 model_name="application", 17 name="slug", 18 field=models.TextField( 19 help_text="Internal application name, used in URLs.", 20 unique=True, 21 validators=[ 22 django.core.validators.RegexValidator( 23 re.compile("^[-a-zA-Z0-9_]+\\Z"), 24 "Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.", 25 "invalid", 26 ) 27 ], 28 ), 29 ), 30 migrations.AlterField( 31 model_name="source", 32 name="slug", 33 field=models.TextField( 34 help_text="Internal source name, used in URLs.", 35 unique=True, 36 validators=[ 37 django.core.validators.RegexValidator( 38 re.compile("^[-a-zA-Z0-9_]+\\Z"), 39 "Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.", 40 "invalid", 41 ) 42 ], 43 ), 44 ), 45 ]
class
Migration(django.db.migrations.migration.Migration):
9class Migration(migrations.Migration): 10 11 dependencies = [ 12 ("authentik_core", "0052_source_promoted"), 13 ] 14 15 operations = [ 16 migrations.AlterField( 17 model_name="application", 18 name="slug", 19 field=models.TextField( 20 help_text="Internal application name, used in URLs.", 21 unique=True, 22 validators=[ 23 django.core.validators.RegexValidator( 24 re.compile("^[-a-zA-Z0-9_]+\\Z"), 25 "Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.", 26 "invalid", 27 ) 28 ], 29 ), 30 ), 31 migrations.AlterField( 32 model_name="source", 33 name="slug", 34 field=models.TextField( 35 help_text="Internal source name, used in URLs.", 36 unique=True, 37 validators=[ 38 django.core.validators.RegexValidator( 39 re.compile("^[-a-zA-Z0-9_]+\\Z"), 40 "Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.", 41 "invalid", 42 ) 43 ], 44 ), 45 ), 46 ]
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.