summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2019-08-29 12:43:47 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-09-07 12:01:43 (GMT)
commit5cce8d3490b7cebb084bfa860c3f37d831d44395 (patch)
tree9d4485b0108aebeb783c6daf32e4dc45bdde36cb
parent9c4af78b0457ee9b4f2db0df29b93d8915d6eab6 (diff)
downloadcombo-5cce8d3490b7cebb084bfa860c3f37d831d44395.zip
combo-5cce8d3490b7cebb084bfa860c3f37d831d44395.tar.gz
combo-5cce8d3490b7cebb084bfa860c3f37d831d44395.tar.bz2
migrations: add missing validators on jsoncell template_string (#35670)
-rw-r--r--combo/data/migrations/0021_jsoncell.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/combo/data/migrations/0021_jsoncell.py b/combo/data/migrations/0021_jsoncell.py
index 5baf2e9..6637d6b 100644
--- a/combo/data/migrations/0021_jsoncell.py
+++ b/combo/data/migrations/0021_jsoncell.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
+import combo.data.models
from django.db import migrations, models
@@ -23,7 +24,7 @@ class Migration(migrations.Migration):
('restricted_to_unlogged', models.BooleanField(default=False, verbose_name='Restrict to unlogged users')),
('title', models.CharField(max_length=150, verbose_name='Title', blank=True)),
('url', models.URLField(verbose_name='URL', blank=True)),
- ('template_string', models.TextField(null=True, verbose_name='Display Template', blank=True)),
+ ('template_string', models.TextField(null=True, verbose_name='Display Template', blank=True, validators=[combo.data.models.django_template_validator])),
('cache_duration', models.PositiveIntegerField(default=60, verbose_name='Cache duration')),
('groups', models.ManyToManyField(to='auth.Group', verbose_name='Groups', blank=True)),
('page', models.ForeignKey(to='data.Page')),