Projet

Général

Profil

0001-jsoncell-change-template_string-name-to-Display-Temp.patch

Thomas Noël, 10 juin 2018 21:12

Télécharger (2,08 ko)

Voir les différences:

Subject: [PATCH] jsoncell: change template_string name to Display Template
 (#24403)

 combo/data/migrations/0021_jsoncell.py | 2 +-
 combo/data/models.py                   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
combo/data/migrations/0021_jsoncell.py
23 23
                ('restricted_to_unlogged', models.BooleanField(default=False, verbose_name='Restrict to unlogged users')),
24 24
                ('title', models.CharField(max_length=150, verbose_name='Title', blank=True)),
25 25
                ('url', models.URLField(verbose_name='URL', blank=True)),
26
                ('template_string', models.TextField(null=True, verbose_name='Template', blank=True)),
26
                ('template_string', models.TextField(null=True, verbose_name='Display Template', blank=True)),
27 27
                ('cache_duration', models.PositiveIntegerField(default=60, verbose_name='Cache duration')),
28 28
                ('groups', models.ManyToManyField(to='auth.Group', verbose_name='Groups', blank=True)),
29 29
                ('page', models.ForeignKey(to='data.Page')),
combo/data/models.py
1132 1132
class JsonCell(JsonCellBase):
1133 1133
    title = models.CharField(_('Title'), max_length=150, blank=True)
1134 1134
    url = models.URLField(_('URL'), blank=True)
1135
    template_string = models.TextField(_('Template'), blank=True, null=True)
1135
    template_string = models.TextField(_('Display Template'), blank=True, null=True)
1136 1136
    cache_duration = models.PositiveIntegerField(
1137 1137
            _('Cache duration'), default=60)
1138 1138
    force_async = models.BooleanField(_('Force asynchronous mode'),
1139
-