mirror of
https://github.com/Superredstone/patrickcanal.it.git
synced 2026-10-06 08:48:51 +02:00
feat(admin): change short_description to TextField instead of CharField
This commit is contained in:
@@ -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
@@ -77,7 +77,7 @@ class Project(models.Model):
|
|||||||
name = models.CharField(
|
name = models.CharField(
|
||||||
verbose_name=_("Name"), max_length=256, null=False, blank=False
|
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
|
verbose_name=_("Short description"), max_length=512, blank=False, null=False
|
||||||
)
|
)
|
||||||
url = models.URLField(verbose_name=_("URL"), blank=True, null=False)
|
url = models.URLField(verbose_name=_("URL"), blank=True, null=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user