Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Generated by Django 5.2.17 on 2026-09-10 14:09

import re

import django.core.validators
from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("submissions", "0019_alter_submissionfileattachment__data_path"),
]

operations = [
migrations.AlterField(
model_name="emailverification",
name="component_key",
field=models.TextField(
help_text="Key of the component in the submission's form. The supported component types are Email and Profile.",
validators=[
django.core.validators.RegexValidator(
message="Invalid variable key. It must only contain alphanumeric characters, underscores, dots and dashes and should not be ended by dash or dot.",
regex=re.compile("^(\\w|\\w[\\w.\\-]*\\w)$"),
)
],
verbose_name="component key",
),
),
]
5 changes: 4 additions & 1 deletion src/openforms/submissions/models/email_verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ class EmailVerification(models.Model):
)
component_key = models.TextField(
_("component key"),
help_text=_("Key of the email component in the submission's form."),
help_text=_(
"Key of the component in the submission's form. The supported component "
"types are Email and Profile."
),
validators=[variable_key_validator],
)
email = models.EmailField(
Expand Down
Loading