jsoncell: increase url max length up to 500 chars (#38839)

This commit is contained in:
Thomas NOËL 2020-01-08 11:09:21 +01:00
parent cef6a37111
commit 800d9a1c9e
2 changed files with 21 additions and 1 deletions

View File

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

View File

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