data: link cell url max_length 2000 (#59643)
gitea-wip/combo/pipeline/head There was a failure building this commit Details
gitea/combo/pipeline/head Build queued... Details

This commit is contained in:
Lauréline Guérin 2021-12-13 16:27:54 +01:00
parent 15baba11f1
commit 09c30d619c
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,23 @@
from django.db import migrations, models
import combo.data.models
class Migration(migrations.Migration):
dependencies = [
('data', '0050_populate_site_settings'),
]
operations = [
migrations.AlterField(
model_name='linkcell',
name='url',
field=models.CharField(
blank=True,
max_length=2000,
validators=[combo.data.models.django_template_validator],
verbose_name='URL',
),
),
]

View File

@ -1425,7 +1425,7 @@ class MenuCell(CellBase):
@register_cell_class
class LinkCell(CellBase):
title = models.CharField(_('Title'), max_length=150, blank=True)
url = models.CharField(_('URL'), max_length=200, blank=True, validators=[django_template_validator])
url = models.CharField(_('URL'), max_length=2000, blank=True, validators=[django_template_validator])
link_page = models.ForeignKey(
'data.Page',
on_delete=models.CASCADE,