Cleanup of unicode magic methods, continued

This commit is contained in:
Griatch 2019-01-31 21:17:59 +01:00
parent 7a535b35fa
commit a9902a8f18

View file

@ -69,8 +69,6 @@ class Tag(models.Model):
def __lt__(self, other):
return str(self) < str(other)
def __repr__(self):
return "<Tag: %s%s>" % (self.db_key, "(category:%s)" % self.db_category if self.db_category else "")
def __str__(self):
return str("<Tag: %s%s>" % (self.db_key, "(category:%s)" % self.db_category if self.db_category else ""))
@ -407,9 +405,6 @@ class TagHandler(object):
def __str__(self):
return ",".join(self.all())
def __unicode(self):
return ",".join(self.all())
class AliasHandler(TagHandler):
"""