data: help_text for sub_slug (#55103)
gitea-wip/combo/pipeline/head There was a failure building this commit Details
gitea/combo/pipeline/head Build started... Details

This commit is contained in:
Lauréline Guérin 2021-06-25 16:33:07 +02:00
parent 6668215594
commit aaee753d02
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
2 changed files with 10 additions and 3 deletions

View File

@ -17,7 +17,12 @@ class Migration(migrations.Migration):
name='sub_slug',
field=models.CharField(
blank=True,
help_text='Regular expression to create variadic subpages. Matching named groups are exposed as context variables.',
help_text=(
'Context variable assigned to the path component, for example parking_id. '
'It is also possible to define this using a regular expression, '
'in that case variables will be provided according to named groups, '
'for example (?P<year>[0-9]{4}).'
),
max_length=150,
verbose_name='Sub Slug',
),

View File

@ -183,8 +183,10 @@ class Page(models.Model):
max_length=150,
blank=True,
help_text=_(
'Regular expression to create variadic subpages. '
'Matching named groups are exposed as context variables.'
'Context variable assigned to the path component, for example parking_id. '
'It is also possible to define this using a regular expression, '
'in that case variables will be provided according to named groups, '
'for example (?P<year>[0-9]{4}).'
),
)
description = models.TextField(_('Description'), blank=True)