feat(admin): change short_description to TextField instead of CharField

This commit is contained in:
2026-10-01 21:02:23 +02:00
parent 869006d189
commit 908675689d
2 changed files with 19 additions and 1 deletions
@@ -0,0 +1,18 @@
# Generated by Django 6.1.1 on 2026-10-01 19:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0005_projecttag_project_tags'),
]
operations = [
migrations.AlterField(
model_name='project',
name='short_description',
field=models.TextField(max_length=512, verbose_name='Short description'),
),
]
+1 -1
View File
@@ -77,7 +77,7 @@ class Project(models.Model):
name = models.CharField(
verbose_name=_("Name"), max_length=256, null=False, blank=False
)
short_description = models.CharField(
short_description = models.TextField(
verbose_name=_("Short description"), max_length=512, blank=False, null=False
)
url = models.URLField(verbose_name=_("URL"), blank=True, null=False)