From 800d9a1c9e650c13f311a9a886d2cedc557a4fde Mon Sep 17 00:00:00 2001 From: Thomas NOEL Date: Wed, 8 Jan 2020 11:09:21 +0100 Subject: [PATCH] jsoncell: increase url max length up to 500 chars (#38839) --- .../0038_increase_jsoncell_url_max_length.py | 20 +++++++++++++++++++ combo/data/models.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 combo/data/migrations/0038_increase_jsoncell_url_max_length.py diff --git a/combo/data/migrations/0038_increase_jsoncell_url_max_length.py b/combo/data/migrations/0038_increase_jsoncell_url_max_length.py new file mode 100644 index 00000000..0d73241b --- /dev/null +++ b/combo/data/migrations/0038_increase_jsoncell_url_max_length.py @@ -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'), + ), + ] diff --git a/combo/data/models.py b/combo/data/models.py index 8a2ad5af..d4f7093a 100644 --- a/combo/data/models.py +++ b/combo/data/models.py @@ -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(