bitbake: toaster: don't use mru.count in the template

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.

(Bitbake rev: c3ff90c9f028bff5733ebac7b5e72a4688addd3e)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh 2016-05-30 16:04:46 +03:00 committed by Richard Purdie
parent ce9cff5b28
commit 2de58c97a5
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@
});
</script>
{%if mru and mru.count > 0%}
{%if mru %}
{%if mrb_type == 'project' %}
<h2 class="page-header">