diff --git a/apis_ontology/migrations/0048_alter_expression_language_alter_work_language.py b/apis_ontology/migrations/0048_alter_expression_language_alter_work_language.py new file mode 100644 index 0000000..c6f2424 --- /dev/null +++ b/apis_ontology/migrations/0048_alter_expression_language_alter_work_language.py @@ -0,0 +1,42 @@ +# Generated by Django 4.2.11 on 2024-03-28 15:29 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("apis_ontology", "0047_expression_language_work_language"), + ] + + operations = [ + migrations.AlterField( + model_name="expression", + name="language", + field=models.CharField( + blank=True, + choices=[ + ("deu", "Deutsch"), + ("eng", "Englisch"), + ("fra", "Französisch"), + ], + default="", + max_length=255, + verbose_name="Sprache", + ), + ), + migrations.AlterField( + model_name="work", + name="language", + field=models.CharField( + blank=True, + choices=[ + ("deu", "Deutsch"), + ("eng", "Englisch"), + ("fra", "Französisch"), + ], + default="", + max_length=255, + verbose_name="Sprache", + ), + ), + ] diff --git a/apis_ontology/migrations/0049_alter_expression_language_alter_work_language.py b/apis_ontology/migrations/0049_alter_expression_language_alter_work_language.py new file mode 100644 index 0000000..2acd430 --- /dev/null +++ b/apis_ontology/migrations/0049_alter_expression_language_alter_work_language.py @@ -0,0 +1,43 @@ +# Generated by Django 4.2.11 on 2024-03-28 15:32 + +from django.db import migrations +import multiselectfield.db.fields + + +class Migration(migrations.Migration): + dependencies = [ + ("apis_ontology", "0048_alter_expression_language_alter_work_language"), + ] + + operations = [ + migrations.AlterField( + model_name="expression", + name="language", + field=multiselectfield.db.fields.MultiSelectField( + blank=True, + choices=[ + ("deu", "Deutsch"), + ("eng", "Englisch"), + ("fra", "Französisch"), + ], + default="", + max_length=255, + verbose_name="Sprache", + ), + ), + migrations.AlterField( + model_name="work", + name="language", + field=multiselectfield.db.fields.MultiSelectField( + blank=True, + choices=[ + ("deu", "Deutsch"), + ("eng", "Englisch"), + ("fra", "Französisch"), + ], + default="", + max_length=255, + verbose_name="Sprache", + ), + ), + ] diff --git a/apis_ontology/models.py b/apis_ontology/models.py index d0a29d8..0adeac0 100644 --- a/apis_ontology/models.py +++ b/apis_ontology/models.py @@ -212,8 +212,8 @@ class Languages_ISO_639_3(models.TextChoices): EN = "eng", _("Englisch") FR = "fra", _("Französisch") - language = models.CharField( - max_length=3, + language = MultiSelectField( + max_length=255, choices=Languages_ISO_639_3.choices, blank=True, default="",