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,4 +1,4 @@
from __future__ import absolute_import
from __future__ import unicode_literals
from django.db.utils import DatabaseError
from django.dispatch import receiver
@@ -35,22 +35,22 @@ def check_first_run():
register_model_list_columns(PropertyNamespace, [
{
'name': _(u'Label'),
'name': _('Label'),
'attribute': 'label'
},
{
'name': _(u'Items'),
'name': _('Items'),
'attribute': encapsulate(lambda entry: len(entry.get_properties()))
}
])
register_model_list_columns(Property, [
{
'name': _(u'Label'),
'name': _('Label'),
'attribute': 'label'
},
{
'name': _(u'Value'),
'name': _('Value'),
'attribute': 'value'
}
])