misc: turn url field of link cell into a generic char field (#19602)
This commit is contained in:
parent
d051a37c70
commit
0b8b1ba460
|
@ -0,0 +1,19 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('data', '0028_jsoncell_timeout'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='linkcell',
|
||||
name='url',
|
||||
field=models.CharField(max_length=200, verbose_name='URL', blank=True),
|
||||
),
|
||||
]
|
|
@ -658,7 +658,7 @@ class MenuCell(CellBase):
|
|||
@register_cell_class
|
||||
class LinkCell(CellBase):
|
||||
title = models.CharField(_('Title'), max_length=150, blank=True)
|
||||
url = models.URLField(_('URL'), blank=True)
|
||||
url = models.CharField(_('URL'), max_length=200, blank=True)
|
||||
link_page = models.ForeignKey('data.Page', related_name='link_cell', blank=True,
|
||||
null=True, verbose_name=_('Internal link'))
|
||||
anchor = models.CharField(_('Anchor'), max_length=150, blank=True)
|
||||
|
|
Loading…
Reference in New Issue