Commit 14a431bc by Bence Dányi

firewall: get_name set to public

parent 190a788e
......@@ -360,7 +360,8 @@ class Record(models.Model):
"Should be: <priority>:<hostname>"))
else:
raise ValidationError(_("Unknown record type."))
def get_name(self):
return self.__get_name()
def __get_name(self):
if self.host and self.type != 'MX':
if self.type in ['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