summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rw-r--r--bitbake/lib/toaster/toastergui/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index a571b8cc18..bf92510cdc 100644
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -670,11 +670,11 @@ def xhr_dirinfo(request, build_id, target_id):
670 return HttpResponse(_get_dir_entries(build_id, target_id, top), content_type = "application/json") 670 return HttpResponse(_get_dir_entries(build_id, target_id, top), content_type = "application/json")
671 671
672from django.utils.functional import Promise 672from django.utils.functional import Promise
673from django.utils.encoding import force_text 673from django.utils.encoding import force_str
674class LazyEncoder(json.JSONEncoder): 674class LazyEncoder(json.JSONEncoder):
675 def default(self, obj): 675 def default(self, obj):
676 if isinstance(obj, Promise): 676 if isinstance(obj, Promise):
677 return force_text(obj) 677 return force_str(obj)
678 return super(LazyEncoder, self).default(obj) 678 return super(LazyEncoder, self).default(obj)
679 679
680from toastergui.templatetags.projecttags import filtered_filesizeformat 680from toastergui.templatetags.projecttags import filtered_filesizeformat