verbose for fqdn
This commit is contained in:
parent
cec01d02a1
commit
b088c8e6c0
@ -5,7 +5,7 @@ from django.forms import ModelForm
|
|||||||
|
|
||||||
class Host(models.Model):
|
class Host(models.Model):
|
||||||
"""TODO: hash update_secret"""
|
"""TODO: hash update_secret"""
|
||||||
fqdn = models.CharField(max_length=256, unique=True)
|
fqdn = models.CharField(max_length=256, unique=True, verbose_name="Fully qualified domain name")
|
||||||
update_secret = models.CharField(max_length=256)
|
update_secret = models.CharField(max_length=256)
|
||||||
comment = models.CharField(max_length=256, default='', blank=True, null=True)
|
comment = models.CharField(max_length=256, default='', blank=True, null=True)
|
||||||
|
|
||||||
@ -17,7 +17,3 @@ class Host(models.Model):
|
|||||||
return u"%s - %s" % (self.fqdn, self.comment)
|
return u"%s - %s" % (self.fqdn, self.comment)
|
||||||
|
|
||||||
|
|
||||||
class HostForm(ModelForm):
|
|
||||||
class Meta:
|
|
||||||
model = Host
|
|
||||||
fields = ['fqdn', 'update_secret', 'comment']
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user