Add from __future__ import unicode_literals, issue #37
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user