data: help_text for sub_slug (#55103)
This commit is contained in:
parent
6668215594
commit
aaee753d02
|
@ -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',
|
||||
),
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue