Skip to content

Commit

Permalink
Fixing py3 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
rozza committed Oct 1, 2012
1 parent 12f3f8c commit 31ec790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mongoengine/base.py
Expand Up @@ -52,8 +52,8 @@ def __init__(self, message="", **kwargs):
self.field_name = kwargs.get('field_name')
self.message = message

def __unicode__(self):
return self.message
def __str__(self):
return txt_type(self.message)

def __repr__(self):
return '%s(%s,)' % (self.__class__.__name__, self.message)
Expand Down

0 comments on commit 31ec790

Please sign in to comment.