From 7344f7e2847149e84da500786dbb8210d587da3e Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 26 Sep 2014 02:07:58 +0200 Subject: [PATCH] quick fix for py3 compatibility --- nsupdate/main/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsupdate/main/models.py b/nsupdate/main/models.py index dd3684a..cf77c7f 100644 --- a/nsupdate/main/models.py +++ b/nsupdate/main/models.py @@ -322,7 +322,7 @@ class RelatedHost(models.Model): def __unicode__(self): return u"%s.%s" % ( - self.name, unicode(self.main_host)) + self.name, self.main_host.__unicode__()) class Meta(object): unique_together = (('name', 'main_host'), )