Skip to content
Snippets Groups Projects
Commit 57d88151 authored by Mark Caglienzi's avatar Mark Caglienzi
Browse files

Add verbose_name and help_text to HostVar. refs #951

parent 0ed35093
No related branches found
No related tags found
No related merge requests found
......@@ -89,9 +89,21 @@ class Group(models.Model):
class HostVar(models.Model):
host = models.ForeignKey(Host, related_name="vars", on_delete=models.CASCADE)
name = models.CharField(max_length=255)
value = models.TextField(blank=True)
host = models.ForeignKey(
Host, related_name="vars", on_delete=models.CASCADE,
verbose_name=_("Host"),
help_text=_("The host that this variable is related to"),
)
name = models.CharField(
max_length=255,
verbose_name=_("Name"),
help_text=_("The name of the variable"),
)
value = models.TextField(
blank=True,
verbose_name=_("Value"),
help_text=_("The value of the variable"),
)
class Meta:
constraints = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment