1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #9062 - Add/edit {module} substitution to help text for component template name

This commit is contained in:
Daniel Sheppard
2022-07-29 11:55:26 -05:00
parent 07620db027
commit 890efa5400
3 changed files with 13 additions and 1 deletions

View File

@@ -39,7 +39,10 @@ class ComponentTemplateModel(WebhooksMixin, ChangeLoggedModel):
related_name='%(class)ss'
)
name = models.CharField(
max_length=64
max_length=64,
help_text="""
{module} is accepted as a substitution for the module bay position when attached to a module type.
"""
)
_name = NaturalOrderingField(
target_field='name',