diff --git a/trovi/migrations/0012_increase_title_and_short_description_length.py b/trovi/migrations/0012_increase_title_and_short_description_length.py new file mode 100644 index 0000000..6b293a6 --- /dev/null +++ b/trovi/migrations/0012_increase_title_and_short_description_length.py @@ -0,0 +1,22 @@ +# Generated by Django 4.1.4 on 2023-08-02 18:39 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("trovi", "0011_artifact_role"), + ] + + operations = [ + migrations.AlterField( + model_name="artifact", + name="short_description", + field=models.CharField(max_length=200), + ), + migrations.AlterField( + model_name="artifact", + name="title", + field=models.CharField(max_length=140), + ), + ] diff --git a/trovi/settings.py b/trovi/settings.py index 3b6327c..de9d4af 100644 --- a/trovi/settings.py +++ b/trovi/settings.py @@ -378,8 +378,8 @@ os.getenv("TROVI_ARTIFACT_ALLOW_ADMIN_FORCED_WRITES", "false").lower() == "true" ) -ARTIFACT_TITLE_MAX_CHARS = 70 -ARTIFACT_SHORT_DESCRIPTION_MAX_CHARS = 70 +ARTIFACT_TITLE_MAX_CHARS = 140 +ARTIFACT_SHORT_DESCRIPTION_MAX_CHARS = 200 ARTIFACT_LONG_DESCRIPTION_MAX_CHARS = 5000 ARTIFACT_TAG_MAX_CHARS = 32