summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2020-01-08 10:09:21 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2020-01-08 10:15:07 (GMT)
commit0710a1bda7d2213f586d98abf062368bb590e4d4 (patch)
tree4cf2a61b768a892535df0c80d95dbbfc77f95840
parentcef6a371116e6cca18f51cbc84df2056587ffbe5 (diff)
downloadcombo-wip/38839-enlarge-jsoncell-url-size.zip
combo-wip/38839-enlarge-jsoncell-url-size.tar.gz
combo-wip/38839-enlarge-jsoncell-url-size.tar.bz2
jsoncell: increase url max length up to 500 chars (#38839)wip/38839-enlarge-jsoncell-url-size
-rw-r--r--combo/data/migrations/0038_increase_jsoncell_url_max_length.py20
-rw-r--r--combo/data/models.py2
2 files changed, 21 insertions, 1 deletions
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 0000000..0d73241
--- /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 8a2ad5a..d4f7093 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(