Fixed unicode call in deconstruct to maintain Python3 compatibility.

This commit is contained in:
Dirk Eschler 2014-07-11 13:31:57 +02:00
parent e4e325a8e7
commit fd911bb37b

View file

@ -251,7 +251,7 @@ class TranslationField(object):
def deconstruct(self):
name, path, args, kwargs = self.translated_field.deconstruct()
return unicode(self.name), path, args, kwargs
return self.name.decode('utf-8'), path, args, kwargs
def south_field_triple(self):
"""