From 9f1014ea4bce99addd44d6ddb60c2e0317819603 Mon Sep 17 00:00:00 2001 From: Jelte van Boheemen Date: Fri, 5 Jul 2024 18:31:20 +0200 Subject: [PATCH] Migrations for addcorpus --- ...documentationpage_type_alter_field_name.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 backend/addcorpus/migrations/0023_alter_corpusdocumentationpage_type_alter_field_name.py diff --git a/backend/addcorpus/migrations/0023_alter_corpusdocumentationpage_type_alter_field_name.py b/backend/addcorpus/migrations/0023_alter_corpusdocumentationpage_type_alter_field_name.py new file mode 100644 index 000000000..6d8be1bb4 --- /dev/null +++ b/backend/addcorpus/migrations/0023_alter_corpusdocumentationpage_type_alter_field_name.py @@ -0,0 +1,24 @@ +# Generated by Django 4.2.11 on 2024-07-05 16:30 + +import addcorpus.validation.creation +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('addcorpus', '0022_add_url_display_type'), + ] + + operations = [ + migrations.AlterField( + model_name='corpusdocumentationpage', + name='type', + field=models.CharField(choices=[('general', 'General information'), ('citation', 'Citation'), ('license', 'License'), ('terms_of_service', 'Terms of service'), ('wordmodels', 'Word models')], default='general', help_text='the type of documentation', max_length=16), + ), + migrations.AlterField( + model_name='field', + name='name', + field=models.SlugField(help_text='internal name for the field', max_length=126, validators=[addcorpus.validation.creation.validate_name_is_not_a_route_parameter, addcorpus.validation.creation.validate_name_has_no_ner_suffix]), + ), + ]