From 8d44a37c389da61c85e4da7ac40e266257fe65a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Martin=20Sl=C3=A5en?= Date: Thu, 21 Apr 2011 22:31:46 +0200 Subject: [PATCH] fixed error in model for zone generation --- mdb/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mdb/models.py b/mdb/models.py index 369f926..2e576fb 100644 --- a/mdb/models.py +++ b/mdb/models.py @@ -216,18 +216,18 @@ class Ip4Subnet(models.Model): for addr in self.ip4address_set.all(): if addr.interface_set.count() == 0: - content += "%s\tIN\tPTR\t%s.%s\n" % (addr, addr.address.split(".")[3], + content += "%s\tIN\tPTR\t%s.%s\n" % (addr.address, addr.address.split(".")[3], "dhcp.neuf.no.") continue for interface in addr.interface_set.all(): if interface.domain == None: - content += "%s\tIN\tPTR\t%s.%s.\n" % (addr, addr.address.split(".")[3], + content += "%s\tIN\tPTR\t%s.%s.\n" % (addr.address, addr.address.split(".")[3], "dhcp.neuf.no") else: hostname = "%s.%s" % (interface.host.hostname, interface.domain.domain_name) - content += "%s\tIN\tPTR\t%s.\n" % (addr, hostname) + content += "%s\tIN\tPTR\t%s.\n" % (addr.address, hostname) return content