diff --git a/authentik/stages/prompt/migrations/0005_alter_prompt_field_key.py b/authentik/stages/prompt/migrations/0005_alter_prompt_field_key.py new file mode 100644 index 000000000..83c849746 --- /dev/null +++ b/authentik/stages/prompt/migrations/0005_alter_prompt_field_key.py @@ -0,0 +1,20 @@ +# Generated by Django 3.2.8 on 2021-10-10 16:54 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("authentik_stages_prompt", "0004_prompt_sub_text"), + ] + + operations = [ + migrations.AlterField( + model_name="prompt", + name="field_key", + field=models.TextField( + help_text="Name of the form field, also used to store the value" + ), + ), + ] diff --git a/authentik/stages/prompt/models.py b/authentik/stages/prompt/models.py index 48a7c4b61..67524873a 100644 --- a/authentik/stages/prompt/models.py +++ b/authentik/stages/prompt/models.py @@ -57,7 +57,7 @@ class Prompt(SerializerModel): prompt_uuid = models.UUIDField(primary_key=True, editable=False, default=uuid4) - field_key = models.SlugField( + field_key = models.TextField( help_text=_("Name of the form field, also used to store the value") ) label = models.TextField() diff --git a/schema.yml b/schema.yml index 1552f2838..58fc8284c 100644 --- a/schema.yml +++ b/schema.yml @@ -26264,8 +26264,6 @@ components: field_key: type: string description: Name of the form field, also used to store the value - maxLength: 50 - pattern: ^[-a-zA-Z0-9_]+$ label: type: string type: @@ -27145,8 +27143,6 @@ components: field_key: type: string description: Name of the form field, also used to store the value - maxLength: 50 - pattern: ^[-a-zA-Z0-9_]+$ label: type: string type: @@ -27211,8 +27207,6 @@ components: field_key: type: string description: Name of the form field, also used to store the value - maxLength: 50 - pattern: ^[-a-zA-Z0-9_]+$ label: type: string type: