quick fix for py3 compatibility

This commit is contained in:
Thomas Waldmann 2014-09-26 02:07:58 +02:00
parent 2f72e7058f
commit 7344f7e284

View File

@ -322,7 +322,7 @@ class RelatedHost(models.Model):
def __unicode__(self): def __unicode__(self):
return u"%s.%s" % ( return u"%s.%s" % (
self.name, unicode(self.main_host)) self.name, self.main_host.__unicode__())
class Meta(object): class Meta(object):
unique_together = (('name', 'main_host'), ) unique_together = (('name', 'main_host'), )