authentik.stages.prompt.migrations.0007_prompt_placeholder_expression
1# Generated by Django 4.0.2 on 2022-02-27 19:19 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 dependencies = [ 8 ("authentik_stages_prompt", "0006_alter_prompt_type"), 9 ] 10 11 operations = [ 12 migrations.AddField( 13 model_name="prompt", 14 name="placeholder_expression", 15 field=models.BooleanField(default=False), 16 ), 17 migrations.AlterField( 18 model_name="prompt", 19 name="type", 20 field=models.CharField( 21 choices=[ 22 ("text", "Text: Simple Text input"), 23 ( 24 "text_read_only", 25 "Text (read-only): Simple Text input, but cannot be edited.", 26 ), 27 ( 28 "username", 29 ( 30 "Username: Same as Text input, but checks for and prevents duplicate" 31 " usernames." 32 ), 33 ), 34 ("email", "Email: Text field with Email type."), 35 ( 36 "password", 37 ( 38 "Password: Masked input, password is validated against sources." 39 " Policies still have to be applied to this Stage. If two of these are" 40 " used in the same stage, they are ensured to be identical." 41 ), 42 ), 43 ("number", "Number"), 44 ("checkbox", "Checkbox"), 45 ("date", "Date"), 46 ("date-time", "Date Time"), 47 ("separator", "Separator: Static Separator Line"), 48 ("hidden", "Hidden: Hidden field, can be used to insert data into form."), 49 ("static", "Static: Static value, displayed as-is."), 50 ("ak-locale", "authentik: Selection of locales authentik supports"), 51 ], 52 max_length=100, 53 ), 54 ), 55 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 dependencies = [ 9 ("authentik_stages_prompt", "0006_alter_prompt_type"), 10 ] 11 12 operations = [ 13 migrations.AddField( 14 model_name="prompt", 15 name="placeholder_expression", 16 field=models.BooleanField(default=False), 17 ), 18 migrations.AlterField( 19 model_name="prompt", 20 name="type", 21 field=models.CharField( 22 choices=[ 23 ("text", "Text: Simple Text input"), 24 ( 25 "text_read_only", 26 "Text (read-only): Simple Text input, but cannot be edited.", 27 ), 28 ( 29 "username", 30 ( 31 "Username: Same as Text input, but checks for and prevents duplicate" 32 " usernames." 33 ), 34 ), 35 ("email", "Email: Text field with Email type."), 36 ( 37 "password", 38 ( 39 "Password: Masked input, password is validated against sources." 40 " Policies still have to be applied to this Stage. If two of these are" 41 " used in the same stage, they are ensured to be identical." 42 ), 43 ), 44 ("number", "Number"), 45 ("checkbox", "Checkbox"), 46 ("date", "Date"), 47 ("date-time", "Date Time"), 48 ("separator", "Separator: Static Separator Line"), 49 ("hidden", "Hidden: Hidden field, can be used to insert data into form."), 50 ("static", "Static: Static value, displayed as-is."), 51 ("ak-locale", "authentik: Selection of locales authentik supports"), 52 ], 53 max_length=100, 54 ), 55 ), 56 ]
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.