|
@@ -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)
|