12468 correct migration

This commit is contained in:
Arthur 2023-05-11 08:48:24 -07:00
parent 8b2f0cdc1e
commit d55162ce4f
2 changed files with 17 additions and 24 deletions

View File

@ -13,6 +13,21 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='customfield',
name='name',
field=models.CharField(max_length=50, unique=True, validators=[django.core.validators.RegexValidator(flags=re.RegexFlag['IGNORECASE'], message='Only alphanumeric characters and underscores are allowed.', regex='^[a-z0-9_]+$')]),
field=models.CharField(
max_length=50,
unique=True,
validators=[
django.core.validators.RegexValidator(
flags=re.RegexFlag['IGNORECASE'],
message='Only alphanumeric characters and underscores are allowed.',
regex='^[a-z0-9_]+$',
),
django.core.validators.RegexValidator(
flags=re.RegexFlag['IGNORECASE'],
message='No double-underscores are allowed.',
regex='^(?!.*__.*)',
),
],
),
),
]

View File

@ -1,8 +1,6 @@
# Generated by Django 4.1.7 on 2023-03-27 17:31
import django.core.validators
from django.db import migrations, models
import re
from django.db import migrations
class Migration(migrations.Migration):
@ -15,24 +13,4 @@ class Migration(migrations.Migration):
migrations.DeleteModel(
name='JobResult',
),
migrations.AlterField(
model_name='customfield',
name='name',
field=models.CharField(
max_length=50,
unique=True,
validators=[
django.core.validators.RegexValidator(
flags=re.RegexFlag['IGNORECASE'],
message='Only alphanumeric characters and underscores are allowed.',
regex='^[a-z0-9_]+$',
),
django.core.validators.RegexValidator(
flags=re.RegexFlag['IGNORECASE'],
message='No double-underscores are allowed.',
regex='^(?!.*__.*)',
),
],
),
),
]