Browse Source

Display reverse dns entries with the hostname

Baptiste Jonglez 11 years ago
parent
commit
6891d2e3e0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      coin/reverse_dns/models.py

+ 2 - 1
coin/reverse_dns/models.py

@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 from django.db import models
 from django.core.exceptions import ValidationError
 from netfields import InetAddressField, NetManager
@@ -35,4 +36,4 @@ class ReverseDNSEntry(models.Model):
                 raise ValidationError('IP address must be included in the IP subnet.')
 
     def __unicode__(self):
-        return str(self.ip)
+        return u"{} → {}".format(self.ip, self.reverse)