[bitbake-devel] [PATCH 26/28] toaster: don't use mru.count in the template
Richard Purdie
richard.purdie at linuxfoundation.org
Wed Jun 1 12:36:45 UTC 2016
From: Ed Bartosh <ed.bartosh at linux.intel.com>
mru is a list. It has a count method, but it differs from the
one for the queryset. Using mru.count causes 'Latest project builds'
section to silently disappear when toaster runs on python 3.
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/toaster/toastergui/templates/mrb_section.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/toaster/toastergui/templates/mrb_section.html b/lib/toaster/toastergui/templates/mrb_section.html
index 212998a..2780ac5 100644
--- a/lib/toaster/toastergui/templates/mrb_section.html
+++ b/lib/toaster/toastergui/templates/mrb_section.html
@@ -18,7 +18,7 @@
});
</script>
-{%if mru and mru.count > 0%}
+{%if mru %}
{%if mrb_type == 'project' %}
<h2 class="page-header">
--
2.5.0
More information about the bitbake-devel
mailing list