0001-migrations-add-missing-validators-on-jsoncell-templa.patch
combo/data/migrations/0021_jsoncell.py | ||
---|---|---|
1 | 1 |
# -*- coding: utf-8 -*- |
2 | 2 |
from __future__ import unicode_literals |
3 | 3 | |
4 |
import combo.data.models |
|
4 | 5 |
from django.db import migrations, models |
5 | 6 | |
6 | 7 | |
... | ... | |
23 | 24 |
('restricted_to_unlogged', models.BooleanField(default=False, verbose_name='Restrict to unlogged users')), |
24 | 25 |
('title', models.CharField(max_length=150, verbose_name='Title', blank=True)), |
25 | 26 |
('url', models.URLField(verbose_name='URL', blank=True)), |
26 |
('template_string', models.TextField(null=True, verbose_name='Display Template', blank=True)), |
|
27 |
('template_string', models.TextField(null=True, verbose_name='Display Template', blank=True, validators=[combo.data.models.django_template_validator])),
|
|
27 | 28 |
('cache_duration', models.PositiveIntegerField(default=60, verbose_name='Cache duration')), |
28 | 29 |
('groups', models.ManyToManyField(to='auth.Group', verbose_name='Groups', blank=True)), |
29 | 30 |
('page', models.ForeignKey(to='data.Page')), |
30 |
- |