misc: help_text for cache_duration fields (#50713)
This commit is contained in:
parent
f333ce7b1c
commit
7b690fb0b6
|
@ -14,7 +14,7 @@ class Migration(migrations.Migration):
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='maplayer',
|
model_name='maplayer',
|
||||||
name='cache_duration',
|
name='cache_duration',
|
||||||
field=models.PositiveIntegerField(default=60, verbose_name='Cache duration'),
|
field=models.PositiveIntegerField(default=60, help_text='In seconds.', verbose_name='Cache duration'),
|
||||||
),
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='maplayer',
|
model_name='maplayer',
|
||||||
|
|
|
@ -125,7 +125,7 @@ class MapLayer(models.Model):
|
||||||
icon = models.CharField(_('Marker icon'), max_length=32, blank=True, null=True,
|
icon = models.CharField(_('Marker icon'), max_length=32, blank=True, null=True,
|
||||||
choices=ICONS)
|
choices=ICONS)
|
||||||
icon_colour = models.CharField(_('Icon colour'), max_length=7, default='#000000')
|
icon_colour = models.CharField(_('Icon colour'), max_length=7, default='#000000')
|
||||||
cache_duration = models.PositiveIntegerField(_('Cache duration'), default=60)
|
cache_duration = models.PositiveIntegerField(_('Cache duration'), default=60, help_text=_('In seconds.'))
|
||||||
include_user_identifier = models.BooleanField(
|
include_user_identifier = models.BooleanField(
|
||||||
_('Include user identifier in request'),
|
_('Include user identifier in request'),
|
||||||
default=True)
|
default=True)
|
||||||
|
|
|
@ -25,7 +25,7 @@ class Migration(migrations.Migration):
|
||||||
('title', models.CharField(max_length=150, verbose_name='Title', blank=True)),
|
('title', models.CharField(max_length=150, verbose_name='Title', blank=True)),
|
||||||
('url', models.URLField(verbose_name='URL', blank=True)),
|
('url', models.URLField(verbose_name='URL', blank=True)),
|
||||||
('template_string', models.TextField(null=True, verbose_name='Display Template', blank=True, validators=[combo.data.models.django_template_validator])),
|
('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')),
|
('cache_duration', models.PositiveIntegerField(default=60, help_text='In seconds.', verbose_name='Cache duration')),
|
||||||
('groups', models.ManyToManyField(to='auth.Group', verbose_name='Groups', blank=True)),
|
('groups', models.ManyToManyField(to='auth.Group', verbose_name='Groups', blank=True)),
|
||||||
('page', models.ForeignKey(to='data.Page', on_delete=models.CASCADE)),
|
('page', models.ForeignKey(to='data.Page', on_delete=models.CASCADE)),
|
||||||
],
|
],
|
||||||
|
|
|
@ -1775,7 +1775,7 @@ class JsonCell(JsonCellBase):
|
||||||
template_string = models.TextField(_('Display Template'), blank=True, null=True,
|
template_string = models.TextField(_('Display Template'), blank=True, null=True,
|
||||||
validators=[django_template_validator])
|
validators=[django_template_validator])
|
||||||
cache_duration = models.PositiveIntegerField(
|
cache_duration = models.PositiveIntegerField(
|
||||||
_('Cache duration'), default=60)
|
_('Cache duration'), default=60, help_text=_('In seconds.'))
|
||||||
force_async = models.BooleanField(_('Force asynchronous mode'),
|
force_async = models.BooleanField(_('Force asynchronous mode'),
|
||||||
default=JsonCellBase.force_async)
|
default=JsonCellBase.force_async)
|
||||||
varnames_str = models.CharField(_('Variable names'), max_length=200, blank=True,
|
varnames_str = models.CharField(_('Variable names'), max_length=200, blank=True,
|
||||||
|
|
Loading…
Reference in New Issue