Add from __future__ import unicode_literals, issue #37

This commit is contained in:
Roberto Rosario
2015-01-19 04:06:40 -04:00
parent efbac7300c
commit d59ea3ede2
334 changed files with 2452 additions and 2268 deletions

View File

@@ -1,3 +1,5 @@
from __future__ import unicode_literals
from django.db import models
from django.utils.translation import ugettext
@@ -39,7 +41,7 @@ class ModelAttribute(object):
def get_display(self, show_name=False):
if self.description:
return u'{} - {}'.format(self.name if show_name else self.label, self.description)
return '{} - {}'.format(self.name if show_name else self.label, self.description)
else:
return unicode(self.name if show_name else self.label)