|
@@ -26,6 +26,10 @@ class ReverseDNSEntry(models.Model):
|
|
objects = NetManager()
|
|
objects = NetManager()
|
|
|
|
|
|
def clean(self):
|
|
def clean(self):
|
|
|
|
+ if self.reverse:
|
|
|
|
+ # Check that the reverse ends with a "." (add it if necessary)
|
|
|
|
+ if not self.reverse.endswith('.'):
|
|
|
|
+ self.reverse += '.'
|
|
if self.ip:
|
|
if self.ip:
|
|
if not self.ip in self.ip_subnet.inet:
|
|
if not self.ip in self.ip_subnet.inet:
|
|
raise ValidationError('IP address must be included in the IP subnet.')
|
|
raise ValidationError('IP address must be included in the IP subnet.')
|