From ca34ca3e0d97e2dca0125ac2d9e4cacfbc71d537 Mon Sep 17 00:00:00 2001 From: elnappo Date: Sat, 6 Dec 2014 12:35:20 +0100 Subject: [PATCH] remove all __unicode__() for python3 compatibility --- nsupdate/main/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nsupdate/main/models.py b/nsupdate/main/models.py index 2519e0b..f350489 100644 --- a/nsupdate/main/models.py +++ b/nsupdate/main/models.py @@ -404,7 +404,7 @@ class RelatedHost(models.Model): verbose_name=_("main host")) def __str__(self): - return "%s.%s" % (self.name, self.main_host.__unicode__()) + return "%s.%s" % (self.name, self.main_host) class Meta(object): unique_together = (('name', 'main_host'), ) @@ -472,7 +472,7 @@ class ServiceUpdater(models.Model): related_name='serviceupdater', verbose_name=_("created by")) - def __unicode__(self): + def __str__(self): return self.name class Meta(object):