8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-26 22:52:26 +00:00

Plus d'espacements constants dans les enreg DNS pour plus de propreté

This commit is contained in:
Maël Kervella 2017-10-20 01:30:38 +00:00
parent 6191d558c1
commit 691c71e4e1

View file

@ -584,7 +584,7 @@ class Domain(models.Model):
def dns_entry(self):
""" Une entrée DNS"""
if self.cname:
return str(self.name) + " IN CNAME " + str(self.cname) + "."
return str(self.name).ljust(15) + " IN CNAME " + str(self.cname) + "."
def save(self, *args, **kwargs):
""" Empèche le save sans extension valide.