Commit 5bce4609 by x

firewall: jövök egy sörrel :(

parent f675febb
...@@ -218,7 +218,7 @@ class Record(models.Model): ...@@ -218,7 +218,7 @@ class Record(models.Model):
super(Record, self).save(*args, **kwargs) super(Record, self).save(*args, **kwargs)
def clean(self): def clean(self):
if(self.name.endswith(u'.')): if self.name and self.name.endswith(u'.'):
raise ValidationError(u'a domain nem végződhet pontra') raise ValidationError(u'a domain nem végződhet pontra')
if self.host and self.type in ['CNAME', 'A', 'AAAA']: if self.host and self.type in ['CNAME', 'A', 'AAAA']:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment