jsoncell: increase url max length up to 500 chars (#38839)
This commit is contained in:
parent
cef6a37111
commit
800d9a1c9e
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.27 on 2020-01-08 10:14
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('data', '0037_auto_20190701_2118'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='jsoncell',
|
||||
name='url',
|
||||
field=models.CharField(blank=True, max_length=500, verbose_name='URL'),
|
||||
),
|
||||
]
|
|
@ -1334,7 +1334,7 @@ def django_template_validator(value):
|
|||
@register_cell_class
|
||||
class JsonCell(JsonCellBase):
|
||||
title = models.CharField(_('Title'), max_length=150, blank=True)
|
||||
url = models.CharField(_('URL'), blank=True, max_length=200)
|
||||
url = models.CharField(_('URL'), blank=True, max_length=500)
|
||||
template_string = models.TextField(_('Display Template'), blank=True, null=True,
|
||||
validators=[django_template_validator])
|
||||
cache_duration = models.PositiveIntegerField(
|
||||
|
|
Loading…
Reference in New Issue