migrations: add missing validators on jsoncell template_string (#35670)

This commit is contained in:
Thomas NOËL 2019-08-29 14:43:47 +02:00 committed by Frédéric Péters
parent 9c4af78b04
commit 5cce8d3490
1 changed files with 2 additions and 1 deletions

View File

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