From b64a359eb0e9415d9ba8a469cda5d48b8cd675fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Fri, 20 Oct 2017 01:30:38 +0000 Subject: [PATCH] =?UTF-8?q?Plus=20d'espacements=20constants=20dans=20les?= =?UTF-8?q?=20enreg=20DNS=20pour=20plus=20de=20propret=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- machines/models.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/machines/models.py b/machines/models.py index 992fd837..5abc08e7 100644 --- a/machines/models.py +++ b/machines/models.py @@ -280,10 +280,10 @@ class SOA(models.Model): ; TTL """ return ( - ' {refresh};refresh\n' - ' {retry};retry\n' - ' {expire};expire\n' - ' {ttl};TTL' + ' {refresh}; refresh\n' + ' {retry}; retry\n' + ' {expire}; expire\n' + ' {ttl}; TTL' ).format( refresh=str(self.refresh).ljust(12), retry=str(self.retry).ljust(12), @@ -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.