diff --git a/nsupdate/main/models.py b/nsupdate/main/models.py index 4dead14..f9c336d 100644 --- a/nsupdate/main/models.py +++ b/nsupdate/main/models.py @@ -5,7 +5,7 @@ from django.forms import ModelForm class Host(models.Model): """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) 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) -class HostForm(ModelForm): - class Meta: - model = Host - fields = ['fqdn', 'update_secret', 'comment']