data: link cell url max_length 2000 (#59643)
This commit is contained in:
parent
15baba11f1
commit
09c30d619c
|
@ -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',
|
||||
),
|
||||
),
|
||||
]
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue