Remove __unicode__ magic methods no longer needed
This commit is contained in:
parent
c3df77b678
commit
7a535b35fa
8 changed files with 10 additions and 29 deletions
|
|
@ -167,7 +167,7 @@ class Attribute(SharedMemoryModel):
|
|||
def __str__(self):
|
||||
return smart_str("%s(%s)" % (self.db_key, self.id))
|
||||
|
||||
def __unicode__(self):
|
||||
def __repr__(self):
|
||||
return "%s(%s)" % (self.db_key, self.id)
|
||||
|
||||
def access(self, accessing_obj, access_type='read', default=False, **kwargs):
|
||||
|
|
|
|||
|
|
@ -342,7 +342,7 @@ class TypedObject(SharedMemoryModel):
|
|||
def __str__(self):
|
||||
return smart_str("%s" % self.db_key)
|
||||
|
||||
def __unicode__(self):
|
||||
def __repr__(self):
|
||||
return "%s" % self.db_key
|
||||
|
||||
#@property
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ class Tag(models.Model):
|
|||
def __lt__(self, other):
|
||||
return str(self) < str(other)
|
||||
|
||||
def __unicode__(self):
|
||||
def __repr__(self):
|
||||
return "<Tag: %s%s>" % (self.db_key, "(category:%s)" % self.db_category if self.db_category else "")
|
||||
|
||||
def __str__(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue