remove all __unicode__() for python3 compatibility

This commit is contained in:
elnappo 2014-12-06 12:35:20 +01:00
parent 75fc8627d7
commit ca34ca3e0d
No known key found for this signature in database
GPG Key ID: 3AAF323515F3F056

View File

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