From: Ed Bartosh Date: Mon, 30 May 2016 13:04:46 +0000 (+0300) Subject: toaster: don't use mru.count in the template X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3ff90c9f028bff5733ebac7b5e72a4688addd3e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- diff --git a/lib/toaster/toastergui/templates/mrb_section.html b/lib/toaster/toastergui/templates/mrb_section.html index 212998a6b2f..2780ac591e4 100644 --- a/lib/toaster/toastergui/templates/mrb_section.html +++ b/lib/toaster/toastergui/templates/mrb_section.html @@ -18,7 +18,7 @@ }); -{%if mru and mru.count > 0%} +{%if mru %} {%if mrb_type == 'project' %}