misc: turn url field of link cell into a generic char field (#19602)

This commit is contained in:
Frédéric Péters 2017-10-22 14:44:45 +02:00
parent d051a37c70
commit 0b8b1ba460
2 changed files with 20 additions and 1 deletions

View File

@ -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),
),
]

View File

@ -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)