SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit cab5bd0d authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Temporary regex change for doi_label

parent 2d5bc229
No related branches found
No related tags found
No related merge requests found
# Generated by Django 2.2.16 on 2020-09-30 04:02
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('journals', '0101_auto_20200929_1234'),
]
operations = [
migrations.AlterField(
model_name='issue',
name='doi_label',
field=models.CharField(db_index=True, max_length=200, unique=True, validators=[django.core.validators.RegexValidator('^((SciPost|MigPol)[a-zA-Z]+)\\.\\w+(\\.[0-9]+)?$', 'Only expressions with regex ((SciPost|MigPol)[a-zA-Z]+)\\.\\w+(\\.[0-9]+)? are allowed.')]),
),
migrations.AlterField(
model_name='journal',
name='doi_label',
field=models.CharField(db_index=True, max_length=200, unique=True, validators=[django.core.validators.RegexValidator('^(SciPost|MigPol)[a-zA-Z]+$', 'Only expressions with regex (SciPost|MigPol)[a-zA-Z]+ are allowed.')]),
),
migrations.AlterField(
model_name='publication',
name='doi_label',
field=models.CharField(db_index=True, max_length=200, unique=True, validators=[django.core.validators.RegexValidator('^((SciPost|MigPol)[a-zA-Z]+)(\\.\\w+(\\.[0-9]+(\\.[0-9]{3,})?)?)?$', 'Only expressions with regex ((SciPost|MigPol)[a-zA-Z]+)(\\.\\w+(\\.[0-9]+(\\.[0-9]{3,})?)?)? are allowed.')]),
),
migrations.AlterField(
model_name='volume',
name='doi_label',
field=models.CharField(db_index=True, max_length=200, unique=True, validators=[django.core.validators.RegexValidator('^((SciPost|MigPol)[a-zA-Z]+\\.\\w)$', 'Only expressions with regex ((SciPost|MigPol)[a-zA-Z]+\\.\\w) are allowed.')]),
),
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment