Skip to content

Commit

Permalink
Increase character limit for artifact title and short description (#132)
Browse files Browse the repository at this point in the history
We received lots of complaints about how short Trovi's title character limit was, so it is now updated to be a more reasonable length. With that, the short descriptions limit has been increased as well.
  • Loading branch information
super-cooper authored Aug 2, 2023
1 parent faa0e56 commit 6fecb08
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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),
),
]
4 changes: 2 additions & 2 deletions trovi/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fecb08

Please sign in to comment.