Fix loop
This commit is contained in:
parent
7a877a00d5
commit
6f0a6df4f6
1 changed files with 1 additions and 1 deletions
|
|
@ -1338,7 +1338,7 @@ class BaseDocument(object):
|
|||
u = '[Bad Unicode data]'
|
||||
return '<%s: %s>' % (self.__class__.__name__, u)
|
||||
|
||||
def __unicode__(self):
|
||||
def __str__(self):
|
||||
if hasattr(self, '__unicode__'):
|
||||
if PY3:
|
||||
return self.__unicode__()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue