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
+3 -3
View File
@@ -1,4 +1,4 @@
from __future__ import absolute_import
from __future__ import absolute_import, unicode_literals
from django.shortcuts import render_to_response
from django.template import RequestContext
@@ -18,7 +18,7 @@ def namespace_list(request):
return render_to_response('main/generic_list.html', {
'object_list': PropertyNamespace.get_all(),
'title': _(u'Installation property namespaces'),
'title': _('Installation property namespaces'),
'hide_object': True,
}, context_instance=RequestContext(request))
@@ -30,7 +30,7 @@ def namespace_details(request, namespace_id):
namespace = PropertyNamespace.get(namespace_id)
object_list = namespace.get_properties()
title = _(u'Installation namespace details for: %s') % namespace.label
title = _('Installation namespace details for: %s') % namespace.label
return render_to_response('main/generic_list.html', {
'object_list': object_list,