mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 09:16:10 -06:00
12468 correct migration
This commit is contained in:
parent
8b2f0cdc1e
commit
d55162ce4f
@ -13,6 +13,21 @@ class Migration(migrations.Migration):
|
|||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='customfield',
|
model_name='customfield',
|
||||||
name='name',
|
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='^(?!.*__.*)',
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
# Generated by Django 4.1.7 on 2023-03-27 17:31
|
# Generated by Django 4.1.7 on 2023-03-27 17:31
|
||||||
|
|
||||||
import django.core.validators
|
from django.db import migrations
|
||||||
from django.db import migrations, models
|
|
||||||
import re
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
@ -15,24 +13,4 @@ class Migration(migrations.Migration):
|
|||||||
migrations.DeleteModel(
|
migrations.DeleteModel(
|
||||||
name='JobResult',
|
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='^(?!.*__.*)',
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user