agendas: add available variables in event_display_template help text (#54221)

This commit is contained in:
Valentin Deniaud 2021-05-25 15:38:19 +02:00
parent aecdcb82b4
commit 30390a1f6c
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ class Migration(migrations.Migration):
name='event_display_template',
field=models.CharField(
blank=True,
help_text='By default event labels will be displayed to users. This allows for a custom template to include additional informations. For example, "{{ event.label }} - {{ event.start_datetime }}" will show event datetime after label.',
help_text='By default event labels will be displayed to users. This allows for a custom template to include additional informations. For example, "{{ event.label }} - {{ event.start_datetime }}" will show event datetime after label. Available variables: event.label (label), event.start_datetime (start date/time), event.places (places), event.remaining_places (remaining places), event.duration (duration), event.pricing (pricing).',
max_length=256,
verbose_name='Event display template',
),

View File

@ -222,7 +222,7 @@ class Agenda(models.Model):
max_length=256,
blank=True,
help_text=_(
'By default event labels will be displayed to users. This allows for a custom template to include additional informations. For example, "{{ event.label }} - {{ event.start_datetime }}" will show event datetime after label.'
'By default event labels will be displayed to users. This allows for a custom template to include additional informations. For example, "{{ event.label }} - {{ event.start_datetime }}" will show event datetime after label. Available variables: event.label (label), event.start_datetime (start date/time), event.places (places), event.remaining_places (remaining places), event.duration (duration), event.pricing (pricing).'
),
)