jsoncell: change template_string name to Display Template (#24403)

This commit is contained in:
Thomas NOËL 2018-06-10 21:11:31 +02:00
parent ce71720c40
commit ab023ecbab
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,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='Template', blank=True)),
('template_string', models.TextField(null=True, verbose_name='Display Template', blank=True)),
('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')),

View File

@ -1132,7 +1132,7 @@ class JsonCellBase(CellBase):
class JsonCell(JsonCellBase):
title = models.CharField(_('Title'), max_length=150, blank=True)
url = models.URLField(_('URL'), blank=True)
template_string = models.TextField(_('Template'), blank=True, null=True)
template_string = models.TextField(_('Display Template'), blank=True, null=True)
cache_duration = models.PositiveIntegerField(
_('Cache duration'), default=60)
force_async = models.BooleanField(_('Force asynchronous mode'),